R.GetCharacterMatrix

Prototypes

static void GetCharacterMatrix( 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 character matrix in which the columns contain the character variables of the R data frame that resulted from evaluating sRExpr.

Remarks

This method evaluates an R expression and creates an IML character matrix from the result. The method evaluates the R expression, coerces the result to an R data frame, and creates an IML character matrix in which the columns contain the character 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;
msg <- c( "Hello", "World" )
endsubmit;

R.GetCharacterMatrix( "msg", x );
print x;
See Also

R.GetMatrix
R.GetNumericMatrix