powered by
Generate SPSS 'COMPUTE' syntax to compute the MAX() of two (sets of) variables.
spss.compute.max(var1, var2, append = "new.", ...)
the first argument for MAX(). Used for the naming of the output variable(s).
the second argument for MAX().
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
# NOT RUN { spss.compute.max(c("dob", "income"), c("dob_f", "income_f"), append = "total.") spss.compute.max(c("dob", "income"), c("dob_f", "income_f")) # }
Run the code above in your browser using DataLab