Skip to content

crosstable 0.3.2

Compare
Choose a tag to compare
@DanChaltiel DanChaltiel released this 10 Jan 20:56
· 544 commits to main since this release

New features

  • Global options management is now easier thanks to crosstable_options() and autocompletion. Almost every argument can now be set using options. See ?crosstable_options for further details.
  • You can also use crosstable_peek_options() to see which crosstable option is currently set.
  • New argument num_digits in crosstable(). It was about time!
  • New argument header_show_n for as_flextable(), which adds the group size (N=xx) to the header of the flextable.
  • New arguments (and global options) par_before and par_after in respectively body_add_table_legend() and body_add_figure_legend(), which add an empty paragraph before/after the legend (for readability).
  • New function for {officer}: body_replace_text_at_bkms(), to replace several bookmarks at once.
  • New global option crosstable_options(crosstable_zero_percent=FALSE), which removes percentages whenever n==0 (as it would always be 0%). I should add it as an argument of crosstable() one day...

Improvements

  • Better sorting when numeric variables are treated as categorical (before, 10 was sorted before 2).
  • Removed the labelled class which caused too many problems for little to no improvement. See larmarange/labelled#111.

Bug fixes

  • fixed a bug in crosstable() occurring when one of funs does not have ellipsis (...) and funs_arg contains an unused argument.