aggregate_to_r: Aggregate to R

Description Usage Arguments Details

View source: R/AggregateToR.r

Description

Converts SPSS aggregate syntax to aggregate in R.

Usage

1
aggregate_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.

...

Additional arguments passed to function, not currently supported.

Details

This function returns a matrix that highlights R syntax that mimics the analysis done in SPSS. The R syntax used by default is from the data.table package as this allows the ability to easily save aggregated variables back into the original R data frame.


lebebr01/SPSStoR documentation built on Nov. 21, 2019, 9:45 p.m.