Recent Releases of crane
crane - v0.2.0
New Functions and Functionality
The
tbl_demographics()function has been renamed totbl_roche_summary()with the following updates. (#73).- Updated
tbl_roche_summary()to convert cells with"0 (0.0%)"to"0". - Update the
tbl_roche_summary()returnedinputslist to match thetbl_roche_summary()argument inputs, whereas it previously returned thetbl_summary()inputs. (#31) - Changed the default header in
tbl_roche_summary()tables from**Characteristic**to an empty string. - Fix in
tbl_roche_summary()when a variable is allNAwithin a stratum. The zero count was displayed as"0 (NA%)"instead of"0". (#60)
- Updated
Added function
tbl_hierarchical_rate_by_grade()to summarize adverse event rates by highest toxicity grade. (#46)Adding the
modify_zero_recode()function that recodes"0 (0.0%)"to"0"in summary tables.Adding the
modify_header_rm_md()function to remove bold and italic markdown syntax from the headers of a gtsummary table. (#53)Adding
tbl_hierarchical_rate_and_count()and associated S3 methodadd_overall()to summarize hierarchical event rates and counts. (#36)Added
tbl_survfit_quantiles()andadd_overall.tbl_survfit_quantiles()to create a table of survival quantiles. (#19)Adding
tbl_survfit_times()andadd_overall.tbl_survfit_times()Adding
tbl_baseline_chg()function. (#62)Added function
tbl_shift()for easing the creation of shift tables. (#83)Added
style_roche_percent()andlabel_roche_percent()functions.Added formatting functions
style_roche_ratio()andlabel_roche_ratio(). (#91)Added
variablesandrow_numbersarguments to theadd_blank_rows()function. (#45)Re-coding
0 / 0 (NA%)to0 / 0inmodify_zero_recode(). (#85)Other Updates
Added an article giving an overview of the {crane} package. (#37)
The {gtsummary} is now loaded with {crane}.
Updated Roche theme to bold headers for
flextableoutputs.Updated Roche theme to include parentheses around Ns in header, and updated function defaults to include the parentheses in crane functions.
Updated
theme_gtsummary_roche()to further style results fromgtsummary::tbl_hierarchical*()functions.Added
theme_gtsummary_roche(font_size, print_egine)arguments to control the default font size and the print engine.Updated Roche theme to use
style_roche_percent()as the default function to format percentages.Added additional {flextable} specs for
theme_gtsummary_roche(). Mainly border line width (0.5) and footer font size (font_size- 1).
What's Changed
- Update scheduled.yaml by @ddsjoberg in https://github.com/insightsengineering/crane/pull/2
- add files for repo to match nest style by @ayogasekaram in https://github.com/insightsengineering/crane/pull/3
- setting up testing by @ddsjoberg in https://github.com/insightsengineering/crane/pull/15
- Adding startup messaging by @ddsjoberg in https://github.com/insightsengineering/crane/pull/10
- Release prep [skip vbump] by @ddsjoberg in https://github.com/insightsengineering/crane/pull/22
- Adding
add_overall()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/32 - Attaching cards and cardx with crane by @ddsjoberg in https://github.com/insightsengineering/crane/pull/34
- Adding
tbl_survfit_quantiles()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/23 - Add flx docx theme by @Melkiades in https://github.com/insightsengineering/crane/pull/35
- Add introduction article by @edelarua in https://github.com/insightsengineering/crane/pull/39
- adding new tests by @ddsjoberg in https://github.com/insightsengineering/crane/pull/42
- update forcats standalone script by @ayogasekaram in https://github.com/insightsengineering/crane/pull/44
- Add hierarchical tables/stratified nested tables article by @edelarua in https://github.com/insightsengineering/crane/pull/40
- Added
add_overall.tbl_survfit_quantiles()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/49 - Add
roche_pvalue()unit tests by @ddsjoberg in https://github.com/insightsengineering/crane/pull/51 - Adding
tbl_survfit_times()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/50 - Adding
tbl_ae_rate_and_count()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/47 - Adding
strip_md_bold()andstrip_md_italic()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/54 - Updates for
tbl_hierarchical_rate_and_count()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/56 - add reference section for crane functions by @ayogasekaram in https://github.com/insightsengineering/crane/pull/58
- Addressing
0 (NA%)recoding issue by @ddsjoberg in https://github.com/insightsengineering/crane/pull/61 - Adding
modify_header_rm_md()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/64 - Adding
modify_zero_recode()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/66 - Header Updates by @ddsjoberg in https://github.com/insightsengineering/crane/pull/67
- accounting for
add_overall()inadd_hierarchical_count_row()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/70 - Adding ARD to
add_hierarchical_count_row()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/71 - Rename
tbl_demographics()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/74 - add roche_percent() function by @ayogasekaram in https://github.com/insightsengineering/crane/pull/68
- Adding theme arguments by @ddsjoberg in https://github.com/insightsengineering/crane/pull/76
- update theme for hierarchical tables by @ddsjoberg in https://github.com/insightsengineering/crane/pull/78
- Addition of rownumbers and explicit defaults for `addblank_rows` by @Melkiades in https://github.com/insightsengineering/crane/pull/75
- Update digits to NULL in tblhierarchicalrateandcount by @ayogasekaram in https://github.com/insightsengineering/crane/pull/82
- Add
tbl_hierarchical_rate_by_grade()by @edelarua in https://github.com/insightsengineering/crane/pull/52 - chore: Add CI pipeline for internal sync by @cicdguy in https://github.com/insightsengineering/crane/pull/87
- Adding
tbl_shift()by @ddsjoberg in https://github.com/insightsengineering/crane/pull/84 - Add parentheses around Ns by @ddsjoberg in https://github.com/insightsengineering/crane/pull/90
- Add parentheses to hard-coded header N strings by @edelarua in https://github.com/insightsengineering/crane/pull/95
- Bolding headers by @Melkiades in https://github.com/insightsengineering/crane/pull/100
- Adding
add_hierarchical_count_row(data_process)argument by @ddsjoberg in https://github.com/insightsengineering/crane/pull/102 modify_zero_recode()to recode0 / nn (0%)to0 / nnby @ddsjoberg in https://github.com/insightsengineering/crane/pull/103- cards fn rename updates by @ddsjoberg in https://github.com/insightsengineering/crane/pull/105
- fix fontsize by @Melkiades in https://github.com/insightsengineering/crane/pull/104
- change from baseline function draft by @ayogasekaram in https://github.com/insightsengineering/crane/pull/65
- add gtsummary prefix by @ayogasekaram in https://github.com/insightsengineering/crane/pull/109
- Adding
add_blank_row(variable_level)argument by @ddsjoberg in https://github.com/insightsengineering/crane/pull/110 tbl_listing()Review Proposed Updates by @ddsjoberg in https://github.com/insightsengineering/crane/pull/111- Adding
*roche_ratio()functions by @ddsjoberg in https://github.com/insightsengineering/crane/pull/112
New Contributors
- @ayogasekaram made their first contribution in https://github.com/insightsengineering/crane/pull/3
- @Melkiades made their first contribution in https://github.com/insightsengineering/crane/pull/35
- @edelarua made their first contribution in https://github.com/insightsengineering/crane/pull/39
- @cicdguy made their first contribution in https://github.com/insightsengineering/crane/pull/87
Full Changelog: https://github.com/insightsengineering/crane/commits/v0.2.0
- R
Published by insights-engineering-bot 9 months ago