Skip to contents

Packages

dunlin dunlin-package
Dunlin Package

Processing Functions

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
dm_unite()
Unite Columns of a Table in a dm object.
join_adsub_adsl()
Join adsub to adsl
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
reformat()
Reformat Values

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

Rule and Format

rule()
Create rule based on mappings
as.list(<rule>)
Convert Rule to List
empty_rule
Create empty rule
list2rules()
Convert nested list into list of rule
read_rules()
Read yaml File describing rule

Assertions

assert_valid_format()
Assert Nested List can be used as Format Argument in Reformat.
assert_valid_list_format()
Assert List can be Converted into a Nested List Compatible with the Format Argument of Reformat.

Data

standard_remap
Example of Remapping List