Nothing
#' Generate SPSS 'COMPUTE' syntax to carry out an operation on two (sets of) variables.
#'
#' @param output specifies the name(s) of the output variable(s) of COMPUTE().
#' @param operation specifies the computational operation to be carried out.
#' @export
#' @examples
#' 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)")
spss.format.compute <- function(output, operation){
paste0("COMPUTE ", output, " = ", operation, ".")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.