spssdictionary.GetVariableFormatType Function (R)
spssdictionary.GetVariableFormatType(variable). Returns the integer type code associated with the display format for the specified variable in the active dataset. The argument is the name of the variable in quotes or the index value of the variable. Index values represent position in the active dataset, starting with 0 for the first variable in file order.
- The supported format types are listed in Variable Format Types. To obtain the string associated with the type code shown in the table, use the GetVariableFormat function.
Example
varformat <- spssdictionary.GetVariableFormatType(0)