spss.concat.new {syntaxr} | R Documentation |
Generate SPSS 'STRING' syntax and 'COMPUTE' syntax to compute the CONCAT() of two (sets of) variables.
Description
Generate SPSS 'STRING' syntax and 'COMPUTE' syntax to compute the CONCAT() of two (sets of) variables.
Usage
spss.concat.new(str1, str2, append = "", name = "", ...)
Arguments
str1 |
the first argument for CONCAT(). Used for the naming of the output variable(s). |
str2 |
the second argument for CONCAT(). |
append |
specifies the text that should be appended to the name(s) of the variable(s) in str1 to create the output variable(s). Defaults to an empty string. |
name |
specifies the name of the new String variable to be created. Defaults to an empty string ; if left unspecified, the function will use the append parameter. |
... |
any additional arguments that can be passed to functions spss.string and spss.compute.concat |
Examples
spss.concat.new(c("dob", "income"), c("dob_f", "income_f"), append = "total.")
spss.concat.new(c("dob", "income"), c("dob_f", "income_f"))
[Package syntaxr version 0.8.0 Index]