DataObject.ExportToR

Prototypes

void ExportToR( String sDataFrameName )

Parameters

String sDataFrameName
The name of the R data frame to which the DataObject is exported.

Remarks

This method exports the DataObject to an R data frame. The names of the variables in the R data frame are the same as in the DataObject with the one following exception. If a name in the DataObject begins with an underscore, the name in the R data frame has "X" prepended to the original name.

For information about how IML Studio transfers data from IMLPlus to R, please refer to the topic Data Exchange Details.

Example
declare DataObject dobj;
dobj = DataObject.CreateFromFile( "iris" );
DataTable.Create( dobj ).SetWindowPosition( 50, 0 );
dobj.ExportToR( "df" );
submit / R;
df
endsubmit;