Learn R Programming

crunch (version 1.14.4)

makeArray: Make a Categorical Array or Multiple Response variable

Description

Make a Categorical Array or Multiple Response variable

Usage

makeArray(subvariables, name, ...)
makeMR(subvariables, name, selections, ...)
deriveArray(subvariables, name, ...)

Arguments

subvariables
a list of Variable objects to bind together, or a Dataset object containing only the Variables to bind (as in from subsetting a Dataset)
name
character, the name that the new Categorical Array variable should have. Required.
...
Optional additional attributes to set on the new variable.
selections
character, for makeMR, the names of the categories to mark as the dichotomous selections. Required for makeMR; ignored in makeArray.

Value

A VariableDefinition that when added to a Dataset will create the categorical-array or multiple-response variable. deriveArray will make a derived array expression, while makeArray and makeMR return an expression that "binds" variables together, removing them from independent existence.