Learn R Programming

SPSStoR (version 0.3.0)

if_to_r: If to R

Description

Converts SPSS if statements to R if statements.

Usage

if_to_r(x, dplyr = TRUE, ...)

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
...
Additional arguments passed to function, not currently supported.

Details

This function returns R syntax that mimics what is accomplished with the same analysis in SPSS.