see_dua_options: Show DUA crosswalk options

Description Usage Arguments Examples

View source: R/dua.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## --------------
## 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()

duawranglr documentation built on April 15, 2021, 5:06 p.m.