DataObject.DeleteObs

Prototypes

void DeleteObs( Matrix mObsNumbers )

Parameters

Matrix mObsNumbers
A vector containing the observation numbers (1-based) of the observations to delete. To specify all the observation numbers in the DataObject, use the predefined constant OBS_ALL.

Remarks

This method deletes observations from the DataObject.

Example
mData = { 20 165,
          30 170, 
          40 175, 
          50 180, 
          60 170, 
          70 160 }; 
mVarNames = { "Age", "Weight" };
declare DataObject dobj;
dobj = DataObject.Create( "Sample Data", mVarNames, mData, false );
mObs = { 2 3 };
dobj.DeleteObs( mObs );
DataTable.Create( dobj ).ActivateWindow();
See Also

DataObject.DeleteVar