spss.compute.max {syntaxr}R Documentation

Generate SPSS 'COMPUTE' syntax to compute the MAX() of two (sets of) variables.

Description

Generate SPSS 'COMPUTE' syntax to compute the MAX() of two (sets of) variables.

Usage

spss.compute.max(var1, var2, append = "new.", ...)

Arguments

var1

the first argument for MAX(). Used for the naming of the output variable(s).

var2

the second argument for MAX().

append

specifies the text that should be appended to the name(s) of the variable(s) in var1 to create the output variable(s).

...

any additional arguments that can be passed to functions spss.format.max and spss.format.compute

Examples

spss.compute.max(c("dob", "income"), c("dob_f", "income_f"), append = "total.")
spss.compute.max(c("dob", "income"), c("dob_f", "income_f"))

[Package syntaxr version 0.8.0 Index]