Description Usage Arguments Examples
Generate SPSS 'COMPUTE' syntax to carry out an operation on two (sets of) variables.
1 | spss.format.compute(output, operation)
|
output |
specifies the name(s) of the output variable(s) of COMPUTE(). |
operation |
specifies the computational operation to be carried out. |
1 2 3 | spss.format.compute("new.var", "MAX(var1,var2)")
spss.format.compute(c("dob", "comments"), c("MAX(dob,dob_f)", "CONCAT(comments,comments_f)"))
spss.format.compute("string.var", "CONCAT(string1,string2)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.