Skip to content

v0.8.0

Choose a tag to compare

@insights-engineering-bot insights-engineering-bot released this 28 May 15:03

New Features and Functions

  • Added new functions compare_ard(), is_ard_equal(), and check_ard_equal(). (#437; @malanbos)
  • Adding ard_tabulate_rows() function to tabulate the number of rows in a data frame. (#531)

Other Updates

  • as_card now has the argument check = TRUE which when TRUE will confirm if the data frame being converted matches the cards spec using check_ard_structure. To support this, check_ard_structure has a new argument error_on_fail which is FALSE by default. When TRUE any failures will generate an error. (#514)
  • Users are now messaged if the by or strata arguments pass columns with different classes in the ard_tabulate(data,denominator) arguments as this may cause issues downstream. (#515)
  • Similar to ard_stack_hierarchical() and ard_stack(), other ard_*() functions and nest_for_ard() now contain an args attribute to retain information about input arguments. (#483)
  • The ard_stack_hierarchical*() functions now return a subclass with the calling function name.
  • The following functions now return an object with an 'args' attribute that contains more contextual information about the objects' creation. ard_strata(), ard_pairwise(), ard_summary(), ard_tabulate(), ard_tabulate_value(), ard_hierarchical(), ard_hierarchical_count(), ard_missing(), ard_mvsummary() and nest_for_ard() contain an args attribute to retain information about input arguments. (#483, @alanahjonas95)
  • Update in ard_tabulate() to account for change in as.data.frame() being released in R-Devel. (#554)

Bug Fixes

  • Fixed bug in rename_ard_columns() whereby factor variables were getting converted to integers and added parameter fct_as_chr as is used in unlist_ard_columns() (#542)

What's Changed

New Contributors

Full Changelog: insightsengineering/cards@v0.7.1...v0.8.0