Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

TYPE Function

determines the type of a matrix

TYPE( matrix)

where matrix is a numeric or character matrix or literal.

The TYPE function returns a single character value; it is N if the type of the matrix is numeric; it is C if the type of the matrix is character; it is U if the matrix does not have a value. Examples of valid statements follow.

The statements

   a={tom};
   r=type(a);
set R to C. The statements
   free a;
   r=type(a);
set R to U. The statements
   a={1 2 3};
   r=type(a);
set R to N.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.