R/AllGenerics.R
, R/hide-variables.R
, R/private-variables.R
hide.Rd
The public folder is the top level folder of all regular public variables. Both hidden and private are hidden from most views in crunch by default. Hidden variables can be accessed by an user, while private variables (and all variables derived from them) are only accessible by users granted "editor" access to the dataset and so can be used to secure personally identifiable information from non-editors of a dataset.
publicFolder(x)
hiddenFolder(x)
privateFolder(x)
hide(x)
unhide(x)
privatize(x)
deprivatize(x)
# S4 method for class 'CrunchDataset'
publicFolder(x)
# S4 method for class 'VariableCatalog'
publicFolder(x)
# S4 method for class 'VariableFolder'
publicFolder(x)
# S4 method for class 'CrunchDataset'
hiddenFolder(x)
# S4 method for class 'VariableCatalog'
hiddenFolder(x)
# S4 method for class 'VariableFolder'
hiddenFolder(x)
# S4 method for class 'CrunchVariable'
hide(x)
# S4 method for class 'VariableCatalog'
hide(x)
# S4 method for class 'CrunchVariable'
unhide(x)
# S4 method for class 'VariableCatalog'
unhide(x)
hideVariables(dataset, variables)
hiddenVariables(x) <- value
unhideVariables(dataset, variables)
hiddenVariables(dataset, key = namekey(dataset))
# S4 method for class 'CrunchDataset'
privateFolder(x)
# S4 method for class 'VariableCatalog'
privateFolder(x)
# S4 method for class 'VariableFolder'
privateFolder(x)
# S4 method for class 'CrunchVariable'
privatize(x)
# S4 method for class 'VariableCatalog'
privatize(x)
# S4 method for class 'CrunchVariable'
deprivatize(x)
# S4 method for class 'VariableCatalog'
deprivatize(x)
privatise(x)
deprivatise(x)
privatizeVariables(dataset, variables)
privatiseVariables(dataset, variables)
privateVariables(x) <- value
deprivatizeVariables(dataset, variables)
deprivatiseVariables(dataset, variables)
privateVariables(dataset, key = namekey(dataset))
a Variable, VariableCatalog, or dataset to hide/unhide/privatize/deprivatize
A dataset
Variables to change status of
Replacement values for assignment methods.
(for hiddenVariables()
/ privateVariables()
the Variable attribute to
return. Default is "alias", following envOrOption("crunch.namekey.dataset")
.
There are several ways to assign variables into these categories and access them:
hideVariables()
/ privatizeVariables()
- take a character vector of variable aliases
and makes them hidden/private. (unhideVariables()
/ deprivatizeVariables()
put them
back in the main variable catalog).
hide()
/ privatize()
- take a CrunchVariable
or VariableCatalog
and
make them hidden/private. (unhide()
/ deprivatize()
put them back in the main
variable catalog).
hiddenFolder()
/ privateFolder()
/ publicFolder()
- take a dataset and return a folder
that contains the public/hidden/private variables. This folder is like other CrunchFolder
s
and so you can use mkdir()
to create subfolders and mv()
to move them in/out.
hiddenVariables()
/ privateVariabiles()
- return a character vector of variables
that are hidden/private. You can assign into the catalog to add variables or
assign to NULL
to remove all of them.