DataObject.GetNumObs

Prototypes

int GetNumObs()

Return Value

The return value is the number of observations in the DataObject.

Parameters

None

Remarks

This method returns the number of observations in the DataObject.

Example
mData = { 1.0 2.0 3.0 4.0,
          1.7 2.2 2.4 5.3,
          2.2 2.5 1.3 6.7 };
mVarNames = 'X1':'X4';
declare DataObject dobj;
dobj = DataObject.Create( "Sample Data", mVarNames, mData );
NumObs = dobj.GetNumObs();
print NumObs;
See Also

DataObject.GetDimensions
DataObject.GetNumVar