ExportDataSetToR

Prototype

void ExportDataSetToR( String sLibrefDotDataSetName, String sDataFrameName )

Parameters

String sLibrefDotDataSetName
A string of the form "libref.member" that specifies the SAS data set to export to R. You do not need to specify the libref if it is WORK.

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

Remarks

This module exports a SAS data set to an R data frame. The names of the variables in the R data frame are the same as in the data set with the one following exception. If a name in the data set 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.

IMPORTANT: This module exports data to client-side R. You must use the RUN statement to invoke this module because there is a corresponding built-in IML subroutine of the same name that exports data to server-side R.
Example
run ExportDataSetToR( "SASHELP.class", "df" );

submit / R;
df
endsubmit;
See Also

DataObject.ExportToR