Packages

dunlin dunlin-package

Dunlin Package

Processing Functions

apply_reformat()

Reformat values

co_relevels()

Reorder Two Columns Levels Simultaneously

cut_by_group()

Cutting data by group

dm_explicit_na()

Encode Categorical Missing Values in a DM Object

mini_pivot_wider()

Transforming data.frame into Wide Format

multi_pivot_wider()

Transforming data.frame with Complex Identifiers into Wide Format

poly_pivot_wider()

Transforming data.frame with multiple Data Column into Wide Format

propagate()

Propagate Column

Helper functions

attr_label()

Setting the Label Attribute

attr_label_df()

Setting the Label Attribute to Data Frame Columns

h_as_factor()

Transforming Empty Strings and White Spaces to Explicit NAs while Preserving Label

h_ws_to_na()

Transforming Empty Strings and White Spaces to NAs

h_ws_to_explicit_na()

Transforming Empty Strings and White Spaces to Explicit NAs

h_reformat_tab()

Reformat a Variable in a Specific Column and Table

Assertion Functions

assert_reformat()

Assert the Reformatting Map.

Data

standard_remap

Example of Remapping List