Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@insights-engineering-bot insights-engineering-bot released this 04 Oct 14:45
· 1 commit to main since this release

New Features & Updates

  • Added functions ard_stack_hierarchical() and ard_stack_hierarchical_count() that ease the creation of ARDs for multiple nested or hierarchical structures. (#314)
  • Added functions update_ard_fmt_fn() and update_ard_stat_label() to update an ARD's formatting function and statistic label, respectively. (#253)
  • Added rename_ard_columns(unlist) argument, which unlists specified columns in the ARD data frame. (#313)
  • Added ard_strata() function to ease the task of calculating ARDs stratified by one or more other categorical variables. (#273)
  • Added functions mock_continuous(), mock_categorical(), mock_dichotomous(), mock_missing(), mock_attributes() to build ARDs in the absence of a data frame. Where applicable, the formatting functions are set to return 'xx' or 'xx.x' to aid in the construction of mock tables or table shells. (#256)
  • Added functions for printing results from eval_capture_conditions(). Captured conditions can be printed as either errors or messages with captured_condition_as_error() and captured_condition_as_message(), respectively. (#282)

Other Updates

  • The ard_hierarchical_count() function has been updated to match the behavior of ard_hierarchical() and results are now only returned for the last column listed in the variables arguments, rather than recursively counting all variables.
  • Add columns 'fmt_fn', 'warning', and 'errors' to ard_attributes() output. (#327)
  • Add checks for factors with no levels, or any levels that are NA into ard_* functions (#255)
  • Any rows with NA or NaN values in the .by columns specified in ard_stack() are now removed from all calculations. (#320)

What's Changed

New Contributors

Full Changelog: v0.2.2...v0.3.0