see_dua_options {duawranglr}R Documentation

Show DUA crosswalk options

Description

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

Usage

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)
## --------------

## see level i options
see_dua_options(level = 'level_i')

## compare two levels of options
see_dua_options(level = c('level_i','level_ii'))

## show all option levels
see_dua_options()


[Package duawranglr version 0.6.7 Index]