Page 1 of 1

name of the series matrix

Posted: Thu Jun 22, 2017 8:32 am
by Akawa
Hi,
I have a simple question: What is the name of my data matrix, that is, those loaded with the command "data". I would like to know the number of columns/series loaded in Rats but don't know the argument in place of "A"

Code: Select all


compute col =  %cols(?)

Thanks

Re: name of the series matrix

Posted: Thu Jun 22, 2017 10:26 am
by TomDoan
There's no "matrix" underlying the series---each series is separately organized (since different series can have different lengths and usable ranges). If you need to know how many series there are at any given time, you could do

compute nseries=%size(%slike("*"))

(%SLIKE(string) returns a list of all series matching a given pattern, where "*" matches anything). If you need to actually create a working matrix out of series, use the MAKE instruction.