Learn R Programming

crunch (version 1.12.2)

hideVariables: Hide and Unhide Variables Within a Dataset

Description

Hide and Unhide Variables Within a Dataset

Usage

hideVariables(dataset, variables = NULL, pattern = NULL, key = namekey(dataset), ...)
hiddenVariables(x) <- value
unhideVariables(dataset, variables = NULL, pattern = NULL, key = namekey(dataset), ...)

Arguments

dataset
the Dataset to modify
variables
names or indices of variables to (un)hide
pattern
optional regular expression to identify Variables to (un)hide. Note that this argument is deprecated. If you wish to grep, you can grep(pattern, aliases(variables(dataset))) or similar outside this function.
key
the Variable attribute to grep with the pattern. Default is "alias"
...
optional additional arguments to grep, likewise deprecated.
x
same as dataset, for `hiddenVariables<-`
value
same as variables, for `hiddenVariables<-`

Value

(invisibly) dataset with the specified variables (un)hidden

See Also

hide