set_dlu: Set/get DLU data

View source: R/macro_utils.R

set_dluR Documentation

Set/get DLU data

Description

set_dlu will set the provided DLU data to package environment, so it can be used for missing data report by cttab. It is user's responsibility to make sure values of the short code in the provided DLU data matches the variable names in the dataset. set_dlu will not have any effect on apply_macro_dict. Instead, the apply_macro_dict will override the 'DLU' seetings done by set_dlu.

get_dlu can be used to get a copy of DLU data in stored by set_dlu.

Usage

set_dlu(x, clean_names = TRUE)

get_dlu()

Arguments

x

DLU data

clean_names

Conver variable name to lower case (default). See clean_names for details.


shug0131/cctu documentation built on Nov. 10, 2023, 12:03 p.m.