R Language Extensions: Passing Data to R and Retrieving Results

The R Integration Support Macro (R.r) implements several extensions to R language – keywords and functions that can be used inside R scripts executed within the Statistica environment. These extensions enable scripts to pass data to R and retrieve results from the R environment.

Important: The R language is case sensitive; therefore R language extensions for Statistica are also case sensitive - they are only recognized by the Statistica environment when typed exactly as shown.

Tabular data represented in Statistica in the form of spreadsheets are mapped into the equivalent R structures – data frames. The mapping preserves as much information as possible for both formats: for example, text label variables in a spreadsheet become factor objects in a data frame, Missing Data values are mapped to NA indicators; data types and variable and case names are transferred both ways, etc.