Formatting data

Functions for formatting numeric interval columns

gen_end() gen_length() gen_name()

Generate columns to help describe numeric variable intervals

Checking interval data

Functions for checking numeric interval columns

assert_no_missing_intervals_dt() identify_missing_intervals_dt()

Check if the interval column in a data.table missing any expected intervals

assert_no_overlapping_intervals_dt() identify_overlapping_intervals_dt()

Check if the interval column in a data.table has overlapping intervals

Aggregation and scaling

Functions for aggregating and scaling hierarchical data

agg() scale()

Aggregate/Scale a detailed level of a hierarchical variable to an aggregate level

Common intervals

Functions for identifying/collapsing to the most detailed common set of intervals

collapse_common_intervals()

Collapse an interval variable to the most detailed common set of intervals

identify_common_intervals() merge_common_intervals()

Helper functions for collapsing to the most detailed common intervals

Splitting hierarchical data

Functions for splitting hierarchical data into more detailed groupings

split_unknown()

Split unknown groupings

Example data

Example hierarchical data and mappings to use with hierarchyUtils functions

iran_pop

Iran Census Population Counts

iran_mapping

Iran Provinces Mapping from 1950 to Today

Debugging aggregation and scaling

Functions for debugging errors/warnings when aggregating and scaling hierarchical data

create_agg_tree() create_scale_tree() vis_tree()

Create a data.tree object to be used for aggregating or scaling hierarchical categorical or interval data

hierarchyUtils

hierarchyUtils: Utility Functions for Hierarchically Structured Data