v0.8.0
New Features and Functions
- Added new functions
compare_ard(),is_ard_equal(), andcheck_ard_equal(). (#437; @malanbos) - Adding
ard_tabulate_rows()function to tabulate the number of rows in a data frame. (#531)
Other Updates
as_cardnow has the argumentcheck = TRUEwhich whenTRUEwill confirm if the data frame being converted matches the cards spec usingcheck_ard_structure. To support this,check_ard_structurehas a new argumenterror_on_failwhich is FALSE by default. When TRUE any failures will generate an error. (#514)- Users are now messaged if the
byorstrataarguments pass columns with different classes in theard_tabulate(data,denominator)arguments as this may cause issues downstream. (#515) - Similar to
ard_stack_hierarchical()andard_stack(), otherard_*()functions andnest_for_ard()now contain anargsattribute 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()andnest_for_ard()contain an args attribute to retain information about input arguments. (#483, @alanahjonas95) - Update in
ard_tabulate()to account for change inas.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 parameterfct_as_chras is used inunlist_ard_columns()(#542)
What's Changed
- Adding
ard_tabulate_rows()function by @ddsjoberg in https://github.com/insightsengineering/cards/pull/533 - adding messaging for mismatched columns by @ddsjoberg in https://github.com/insightsengineering/cards/pull/532
- Create rev-dep-check.yaml by @ddsjoberg in https://github.com/insightsengineering/cards/pull/538
- Make as card check format by @kieranjmartin in https://github.com/insightsengineering/cards/pull/534
- update_ard_fmt_fn needs some love by @kimjj93 in https://github.com/insightsengineering/cards/pull/535
- fix factor to integer bug by @alanahjonas95 in https://github.com/insightsengineering/cards/pull/543
- Fix partial matching issue in
sort_ard_hierarchical()by @jszczypinski in https://github.com/insightsengineering/cards/pull/551 - Update rev-dep-check.yaml by @ddsjoberg in https://github.com/insightsengineering/cards/pull/544
- Fix NA row names error on R-devel in
.table_as_df()by @ddsjoberg in https://github.com/insightsengineering/cards/pull/554 - Adding the
compare_ard(),is_ard_equal()andcheck_ard_equal()functions by @ddsjoberg in https://github.com/insightsengineering/cards/pull/552 - Fix duplicate helpers and expand compare_ard() tests by @malanbos in https://github.com/insightsengineering/cards/pull/560
- Add args by @bzkrouse in https://github.com/insightsengineering/cards/pull/558
- deprecation cycle updates by @ddsjoberg in https://github.com/insightsengineering/cards/pull/561
- Init by @jszczypinski in https://github.com/insightsengineering/cards/pull/564
- Add pharmaverse/cardinal to .revdeprefs.yaml by @shajoezhu in https://github.com/insightsengineering/cards/pull/565
New Contributors
- @kieranjmartin made their first contribution in https://github.com/insightsengineering/cards/pull/534
- @alanahjonas95 made their first contribution in https://github.com/insightsengineering/cards/pull/543
- @jszczypinski made their first contribution in https://github.com/insightsengineering/cards/pull/551
Full Changelog: insightsengineering/cards@v0.7.1...v0.8.0