Command Reference : Command Reference
  
 
stomna
Convert series or group to a matrix object, retaining NAs.
Series-TO-Matrix object with NAs: convert the data in a series or group or series into a matrix, retaining rows with missing values.
Syntax
stom(o1, o2, smp)
where o1 is a series, alpha, or group, o2 is a corresponding vector, svector, or matrix, and smp is an optional sample.
If o1 is a series, stomna fills the vector o2 with data from o1 using the optional sample object smp or the workfile sample. o2 will be resized accordingly. All “NA” values in the series will be assigned to the corresponding vector elements.
If o1 is a group, stomna fills the matrix o2 with data from o1 using the optional sample object smp or the workfile sample. o2 will be resized accordingly. The series in o1 are placed in the columns of o2 in the order they appear in the group spreadsheet. All NAs will be assigned to the corresponding matrix elements.
If o1 is an alpha-series, stomna fills the svector o2 with data from o1 using the optional sample object smp or the workfile sample. o2 will be resized accordingly. All “NA” values (blank elements of the alpha) will be assigned to the corresponding vector elements.
For conversion methods that automatically remove observations with NAs, see @convert and stom.
Examples
stom(ser1,v1)
stom(ser1,v2,smp1)
stomna(grp1,m1)
stomna(grp1,m2,smp1)
Cross-references
See also mtos, @convert, stom, and ttom.