see_dua_level {duawranglr} | R Documentation |
Show current DUA restriction level setting
Description
After setting the DUA restriction level, check the setting and restricted data elements.
Usage
see_dua_level(show_restrictions = FALSE, sort_vars = TRUE, ...)
Arguments
show_restrictions |
Show the names of the variables that are
restricted by the current level if |
sort_vars |
Sort variables alphabetically when printing
restrictions; if |
... |
For debugging. |
Examples
## --------------
## Setup
## --------------
## set DUA crosswalk
dua_cw <- system.file('extdata', 'dua_cw.csv', package = 'duawranglr')
set_dua_cw(dua_cw)
## --------------
## set restriction level
set_dua_level('level_i')
## show name of current restriction level
see_dua_level()
## ...include names of restricted elements
see_dua_level(show_restrictions = TRUE)
## ...show variable names in order saved in crosswalk file
see_dua_level(show_restrictions = TRUE, sort_vars = FALSE)
[Package duawranglr version 0.6.7 Index]