void DeleteVar( Matrix mVarNames )
void DeleteVar( String sVarName )
void DeleteVar( String[] asVarNames )
Matrix mVarNames
A vector containing the names of the variables to delete.
String sVarName
The name of the variable to delete.
String[] asVarNames
An array containing the names of the variables to delete.
This method deletes variables from the DataObject.
x = { 1 2 3 4 5 6 7 8 };
y = { 2 1 4 5 6 5 6 9 };
declare DataObject dobj = DataObject.Create( "Simulated Data" );
dobj.AddVar( "Pred", "Predictor", x );
dobj.AddVar( "Resp", "Response", y );
dobj.DeleteVar( "Pred" );
DataTable.Create( dobj ).ActivateWindow();