Learn R Programming

syntaxr (version 0.8.0)

spss.string: Generate SPSS 'STRING' syntax to create a variable of type string.

Description

Generate SPSS 'STRING' syntax to create a variable of type string.

Usage

spss.string(names, string.format = "A15")

Arguments

names

the name(s) of the variable(s) to be created.

string.format

specifies the formatting to use when creating the string variable. Defaults to "A15".

Examples

Run this code
# NOT RUN {
spss.string("my.string")
spss.string("long.string", string.format = "A40")
# }

Run the code above in your browser using DataLab