v0.6.0
New Features and Functions
-
Added functions
sort_ard_hierarchical()andfilter_ard_hierarchical()to sort & filter ARDs created usingard_stack_hierarchical()andard_stack_hierarchical_count(). (#301) -
Updated
ard_stack_hierarchical()andard_stack_hierarchical_count()to automatically sort results alphanumerically. (#423) -
Added new function
unlist_ard_columns(). (#391) -
Updated function
rename_ard_columns(). (#380)- The function no longer coerces values to character.
- The
fillargument has been added to specify a value to fill in the new column when there are no levels associated with the variables (e.g. continuous summaries). - The
unlistargument has been deprecated in favor of using the newunlist_ard_columns()function. - The function no longer accepts generic data frames: inputs must be a data frame of class
card.
-
Added function
ard_formals()to assist in adding a function's formals, that is, the arguments with their default values, along with user-passed arguments into an ARD structure.
Bug Fixes
- Fixed sorting order of logical variables in
nest_for_ard(). (#411)
Lifecycle Changes
- The
shuffle_ard()function no longer outputs a'label'column, and instead retains the original'variable'level from the cards object. It also no longer trims rows with non-numeric stats values. (#416)
What's Changed
- pull changes from standalone script by @ayogasekaram in https://github.com/insightsengineering/cards/pull/401
- Adding
ard_formals()by @ddsjoberg in https://github.com/insightsengineering/cards/pull/407 - Fix in sort order in
nest_for_ard()by @ddsjoberg in https://github.com/insightsengineering/cards/pull/412 - Add functionality to sort & filter
ard_stack_hierarchical()results by @edelarua in https://github.com/insightsengineering/cards/pull/392 - adding
unlist_ard_columns()function by @ddsjoberg in https://github.com/insightsengineering/cards/pull/417 - Closes #399 by @kimjj93 in https://github.com/insightsengineering/cards/pull/415
- Check
devtools::build_readme()also buildindex.Rmd? by @kimjj93 in https://github.com/insightsengineering/cards/pull/420 - Sort
ard_stack_hierarchical()results by default by @edelarua in https://github.com/insightsengineering/cards/pull/424 - Updates for
rename_ard_columns(), addingunlist_ard_columns()by @ddsjoberg in https://github.com/insightsengineering/cards/pull/413
Full Changelog: insightsengineering/cards@v0.5.1...v0.6.0