remove_labelled_type() to convert columns of class labelled to a more standard format inside prepare_table().plot_dumbell(), df_builder_ae(), plot_volcano() and plot_butterfly_stacked_barplot()
branch f_class_objet_ei
Dans cette branche, j’ai initié la transition vers une programmation orientée objet en convertissant les fonctions desc_ei_per_pt() et desc_ei_per_grade() en génériques basées sur le système S3.
Pour desc_ei_per_pt():
ae_data() : constructeur de l’objetdesc_ei_per_pt() : fonction générique S3desc_ei_per_pt.default() : implémentation par défaut, correspondant à l’appel original avec deux data frames.desc_ei_per_pt.ae_data() : méthode spécifique pour l’objet ae_dataPour desc_ei_per_grade():
ae_grade_data() : constructeur de l’objetdesc_ei_per_grade() : fonction générique S3desc_ei_per_grade.default() : implémentation par défaut, correspondant à l’appel original avec deux data frame.desc_ei_per_grade.ae_grade_data() : méthode spécifique pour l’objet ae_grade_data.Amélioration et développements en cours:
indent_gtsummary_table() function, which allows subtables to use different indentation levels in gtsummary tables and combines them into a single table using gtsummary::tbl_stack().indent_table() function to indent_gt_table(), which handles indentation for gt tables.character(0) values in Quarto reports.digits arguments in desc_var().indent_table() function to control text indentation in table cells.include_all_na_cat argument to desc_var() and prepare_table() to better handle factors with missing levels.write_rendercopy() function to enable rendering the .qmd file programmatically without using the Render button, and to allow flexible definition of the output HTML file name and location.write_qmd() to add components to facilitate switching between analysis phases.custom_round(), select_plus(), and riskdifference().freq_relevel argument in desc_var() and base_table() has been updated to provide more flexible options
for reordering factor levels by frequency, using sort argument from gtsummary.freq_relevel argument has been removed from the prepare_table() function, as it is now handled internally for greater consistency.language argument has been added to the desc_ei_per_grade() function to support output translation.desc_ei_per_pt() function has been revised to align with the new language translation feature.digits and freq_relevel arguments have been added to the documentation of desc_var().desc_ei_per_grade() and desc_ei_per_pt()
desc_var() and base_table()
digits argument
add_missing_info() with cleaner and more elegant internal code.freq_relevel() where the group variable was unintentionally releveled. This behavior could alter group ordering in summary tables and cause issues when stacking multiple variables.modify_ajouter_label_dm() with cleaner and more elegant internal code.