stomna |

Convert series or group to matrix retaining NAs.

Syntax: stomna(o1, o2, smp)

Argument 1: alpha, series or group, o1

Argument 2: svector, vector or matrix, o2

Argument 3: (optional) sample smp

Series-TO-Matrix Object with NAs.

• 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 or blank elements of the alpha 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.

Examples

stom(ser1,v1)

stom(ser1,v2,smp1)

stomna(grp1,m1)

stomna(grp1,m2,smp1)

Cross-references