Language Reference


Matrix Inquiry Functions

ALL function

checks for all nonzero elements

ANY function

checks for any nonzero elements

COL function

returns a matrix, M, that is the same size as the input matrix and such that $M[i,j]=i$.

COUNTMISS function

returns the number of missing values

COUNTN function

returns the number of nonmissing values

COUNTUNIQUE function

returns the number of unique values

CHOOSE function

evaluates a logical matrix and returns values based on whether each element is true or false

DIMENSION function

returns the number of rows and columns of a matrix

ISEMPTY function

returns 1 if the argument is an empty matrix (zero rows and columns) and 1 otherwise

LOC function

finds indices for the nonzero elements of a matrix

NCOL function

finds the number of columns of a matrix

NLENG function

finds the size of an element

NROW function

finds the number of rows of a matrix

ROW function

returns a matrix, M, that is the same size as the input matrix and such that $M[i,j]=j$.

TYPE function

determines the type of a matrix