Releases: DanChaltiel/crosstable
Releases · DanChaltiel/crosstable
crosstable 0.2.0
Misc
- added lots of global options for easier implementation. See
?crosstable_options
for the comprehensive list. - added label helpers:
apply_labels()
(inspired byexpss
's),copy_label_from()
andrename_dataframe_with_labels()
- added
as_workbook()
to export a crosstable as a formattedopenxlsx
Excel workbook, for copypasting purpose. - added
peek()
to open a crosstable in a temporary Word document, as copy-pasting in RStudio's viewer is very limited. - fixed the bug when a columns contained both "NA" (string) and
<NA>
(missing). - fixed the bug where function in
funs
was not found if declared in another environment. - numerous other minor bugfixes and internal improvements.
Officer
- added cross-reference functionality to
body_add_figure_legend()
andbody_add_table_legend()
.
Use thebookmark
argument to set a reference, then write"\\@ref(my_bkm)"
insidebody_add_normal()
to call it. - added docx helpers to add lists:
body_add_list()
andbody_add_list_item()
. These will unfortunately not work with the defaultofficer
template. - added some alternatives for some
officer
functions:docx_bookmarks2()
, which list bookmarks found in the header and footer as wellbody_add_img2()
, andbody_add_gg2()
, which win aunits=c("in", "cm", "mm")
argumentwrite_and_open()
, an alternative toprint()
for documents, which tries to open it right away.
Deprecations
- Ellipsis (
...
) use incrosstable()
has been deprecated for a more "tidy" syntax. Writecrosstable(mtcars2, c(disp, vs))
instead ofcrosstable(mtcars2, disp, vs)
. Ellipsis will be defunct in future v1.0. crosstable(.vars=)
has been renamed tocrosstable(cols=)
.moystd()
has been renamed tomeansd()
.body_add_glued()
has been superseded bybody_add_normal()
, which inherits all functionalities and more.
crosstable 0.1.5
- added minimal support for
gt
tables (withas_gt()
) for those who like them better thanflextable
s - improved working with
officer
: addedbody_add_figure_legend()
andfontsize
options forbody_add_crosstable()
crosstable 0.1.4
- added
save_labels()
to ease working withdplyr
- added
meanCI()
an additional summary function to use incrosstable()
'sfuns
argument - improved support for
Date
variables - multiple, numerous bug fixes
- renamed
moystd()
tomeansd()
crosstable 0.1.3
- Added support for description of
Date
variables. Format can be specified infuns_arg
with thedate_format
key. - Removed some dependencies to ease installation
crosstable 0.1.2
- Effect refactoring: better error/warning handling
- Name sanitation: replacing "." by "_" in function names
- Better error messages
- Bug fixes
crosstable 0.1.1
New features and behaviors
- Added
format_fixed()
, rounding with the right number of decimals (including zeros) - Added
import_labels()
, which apply labels taken from a source dataframe (name, label) to another dataframe - Added
margin="none"
option, to remove percentages and keep only counts - Columns of unsupported class are dropped with a warning instead of failing with an error
Misc
- Method
cross_to_flextable()
(ctf()
) was deprecated and renamedas_flextable()
(#207) - Reexporting pipes and tidyselect helpers so that user does not have to load these libraries
- Computing time optimization (speed x2.6!)
- Fixed bug in normality testing
- Fixed bug in
compact()
crosstable 0.1.0
- First release, big changes from the
biostat2
package.