## S3 method for class 'CategoricalArrayVariable':
subvariables(x)## S3 method for class 'CategoricalArrayVariable,ANY':
subvariables(x) <- value
## S3 method for class 'CategoricalArrayVariable,Subvariables':
subvariables(x) <- value
subvariables
method. They can be assigned back
with the subvariables<-
setter, but there are limitations to what
is supported. Specifically, you can reorder subvariables, but you cannot
add or remove subvariables by subvariables<-
assignment.Subvariables have a names
attribute that can be accessed, showing
the display names of the subvariables. These can be set with the
names<-
method.
Finally, subvariables can be accessed as regular (categorical) variables
with the $
and [[
extract methods.
See the vignette on array variables for further details and examples.
subvars-extract
describe-catalog
vignette("array-variables", package="crunch")