Learn R Programming

SPSStoR (version 0.3.0)

save_to_r: Save to R

Description

Converts SPSS Save statements to valid Save statements in R.

Usage

save_to_r(x, dplyr = TRUE, nosave = FALSE)

Arguments

x
SPSS syntax - read in by SPSStoR function
dplyr
A value of TRUE uses dplyr syntax (default), a value of FALSE uses data.table syntax
nosave
A value of FALSE processes the save commands (default), a value of TRUE continues processing within R, overriding default x object. Extreme care with this feature.

Details

This function returns a matrix that highlights R syntax that mimics the analysis done in SPSS.