R.GetNumericMatrix

Prototypes

static void GetNumericMatrix( String sRExpr, Matrix mData )

Parameters

String sRExpr
An R expression that is evaluated and then coerced to a data frame.

Matrix mData
Upon return, contains a numeric matrix in which the columns contain the numeric variables of the R data frame that resulted from evaluating sRExpr.

Remarks

This method evaluates an R expression and creates an IML numeric matrix from the result. The method evaluates the R expression, coerces the result to an R data frame, and creates an IML numeric matrix in which the columns contain the numeric variables of the data frame.

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

Example
submit / R;
v <- 1:10
endsubmit;

R.GetNumericMatrix( "v", x );
print x;
See Also

R.GetCharacterMatrix
R.GetMatrix