spssdictionary.GetMultiResponseSet Function (R)

spssdictionary.GetMultiResponseSet(mrsetName). Returns the details of the specified multiple response set. The argument mrsetName is a string that specifies the name of the multiple response set--for instance, a name returned by GetMultiResponseSetNames. If the specified name does not begin with a dollar sign ($), then one is added.

  • The result is a list with the following named components: label (the label, if any, for the set), codeAs ("Dichotomies" or "Categories"), countedValue (the counted value--applies only to multiple dichotomy sets), type ("Numeric" or "String"), and vars (a vector of the elementary variables that define the set).
  • If the specified response set does not exist, an exception is thrown.

Example

names <- spssdictionary.GetMultiResponseSetNames()
for(set in names)
{
    y <- spssdictionary.GetMultiResponseSet(mrsetName = set)
    print(y)
}