Once the DUA crosswalk has been loaded, show the available restriction levels with associated data element names.

see_dua_options(level = NULL, sort_vars = TRUE, ...)

Arguments

level

String name or vector of string names of levels to show.

sort_vars

Sort variables alphabetically when printing restrictions; if FALSE, prints in the order saved in the crosswalk file

...

For debugging.

Examples

## -------------- ## Setup ## -------------- ## set DUA crosswalk dua_cw <- system.file('extdata', 'dua_cw.csv', package = 'duawranglr') set_dua_cw(dua_cw)
#> -- duawranglr note ------------------------------------------------------------- #> DUA crosswalk has been set!
## -------------- ## see level i options see_dua_options(level = 'level_i')
#> --------------------------------------------------------------------------------
#> LEVEL NAME: level_i
#> --------------------------------------------------------------------------------
#> #> RESTRICTED VARIABLE NAMES:
#> - dob
#> - gender
#> - raceeth
#> - sid
#> - sname
#> - tid
#> - tname
#> - zip
#>
#> --------------------------------------------------------------------------------
## compare two levels of options see_dua_options(level = c('level_i','level_ii'))
#> --------------------------------------------------------------------------------
#> LEVEL NAME: level_i
#> --------------------------------------------------------------------------------
#> #> RESTRICTED VARIABLE NAMES:
#> - dob
#> - gender
#> - raceeth
#> - sid
#> - sname
#> - tid
#> - tname
#> - zip
#>
#> --------------------------------------------------------------------------------
#> LEVEL NAME: level_ii
#> --------------------------------------------------------------------------------
#> #> RESTRICTED VARIABLE NAMES:
#> - dob
#> - sid
#> - sname
#> - tname
#> - zip
#>
#> --------------------------------------------------------------------------------
## show all option levels see_dua_options()
#> --------------------------------------------------------------------------------
#> LEVEL NAME: level_i
#> --------------------------------------------------------------------------------
#> #> RESTRICTED VARIABLE NAMES:
#> - dob
#> - gender
#> - raceeth
#> - sid
#> - sname
#> - tid
#> - tname
#> - zip
#>
#> --------------------------------------------------------------------------------
#> LEVEL NAME: level_ii
#> --------------------------------------------------------------------------------
#> #> RESTRICTED VARIABLE NAMES:
#> - dob
#> - sid
#> - sname
#> - tname
#> - zip
#>
#> --------------------------------------------------------------------------------
#> LEVEL NAME: level_iii
#> --------------------------------------------------------------------------------
#> #> RESTRICTED VARIABLE NAMES:
#> - sid
#> - sname
#> - tname
#>
#> --------------------------------------------------------------------------------