Package: crosstable 0.8.1.9000

crosstable: Crosstables for Descriptive Analyses

Create descriptive tables for continuous and categorical variables. Apply summary statistics and counting function, with or without a grouping variable, and create beautiful reports using 'rmarkdown' or 'officer'. You can also compute effect sizes and statistical tests if needed.

Authors:Dan Chaltiel [aut, cre], David Hajage [ccp]

crosstable_0.8.1.9000.tar.gz
crosstable_0.8.1.9000.zip(r-4.5)crosstable_0.8.1.9000.zip(r-4.4)crosstable_0.8.1.9000.zip(r-4.3)
crosstable_0.8.1.9000.tgz(r-4.4-any)crosstable_0.8.1.9000.tgz(r-4.3-any)
crosstable_0.8.1.9000.tar.gz(r-4.5-noble)crosstable_0.8.1.9000.tar.gz(r-4.4-noble)
crosstable_0.8.1.9000.tgz(r-4.4-emscripten)crosstable_0.8.1.9000.tgz(r-4.3-emscripten)
crosstable.pdf |crosstable.html
crosstable/json (API)
NEWS

# Install 'crosstable' in R:
install.packages('crosstable', repos = c('https://danchaltiel.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/danchaltiel/crosstable/issues

Datasets:
  • iris2 - Modified 'iris' dataset
  • mtcars2 - Modified 'mtcars' dataset

On CRAN:

descriptive-statisticsflextablefrequency-tablehtml-reportmswordofficer

10.35 score 112 stars 275 scripts 7.0k downloads 90 exports 62 dependencies

Last updated 21 days agofrom:0d125fed28. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 01 2024
R-4.5-winOKNov 01 2024
R-4.5-linuxOKNov 01 2024
R-4.4-winOKNov 01 2024
R-4.4-macOKNov 01 2024
R-4.3-winOKNov 01 2024
R-4.3-macOKNov 01 2024

Exports:%>%afall_ofany_ofapply_labelsas_flextableas_gtas_workbookbody_add_crosstablebody_add_crosstable_footnotebody_add_crosstable_listbody_add_figure_legendbody_add_flextable_listbody_add_gg2body_add_gluedbody_add_img2body_add_listbody_add_list_itembody_add_normalbody_add_table_legendbody_add_table_listbody_add_table_sectionbody_add_titlebody_replace_text_at_bkmsclean_names_with_labelscompactconfint_numericcontainscopy_label_fromcross_summarycross_to_flextablecrosstablecrosstable_effect_argscrosstable_optionscrosstable_peek_optionscrosstable_reset_optionscrosstable_test_argsct_compactctfdiff_mean_autodiff_mean_bootdiff_mean_studentdiff_mediandiff_median_bootdisplay_effectdisplay_testdocx_bookmarks2effect_odds_ratioeffect_relative_riskeffect_risk_differenceeffect_survival_coxphends_witheverythingformat_fixedgenerate_autofit_macroget_labelget_percent_patternimport_labelsis.compacted_crosstableis.crosstableis.multiby_crosstableis.transposed_crosstablematchesmeanCImeansdmediqrminmaxmoystdNnanarmnnapeekpivot_crosstableplimremove_labelremove_labelsrename_dataframe_with_labelsrename_with_labelssave_labelsset_labelstarts_withtest_correlation_autotest_summarize_autotest_summarize_linear_contraststest_survival_logranktest_tabular_autoto_flextabletranspose_crosstablewrite_and_open

Dependencies:askpassbackportsbase64encbslibcachemcheckmateclicpp11data.tabledigestdplyrevaluatefansifastmapflextablefontawesomefontBitstreamVerafontLiberationfontquiverforcatsfsgdtoolsgenericsgluehighrhtmltoolsjquerylibjsonliteknitrlifecyclemagrittrmemoisemimeofficeropensslpillarpkgconfigpurrrR6raggrappdirsRcpprlangrmarkdownsassstringistringrsyssystemfontstextshapingtibbletidyrtidyselecttinytexutf8uuidvctrswithrxfunxml2yamlzip

Introduction to Crosstable

Rendered fromcrosstable.Rmdusingknitr::rmarkdownon Nov 01 2024.

Last update: 2023-05-27
Started: 2020-04-09

Make automatic reports

Rendered fromcrosstable-report.Rmdusingknitr::rmarkdownon Nov 01 2024.

Last update: 2024-08-13
Started: 2020-04-09

Select variables

Rendered fromcrosstable-selection.Rmdusingknitr::rmarkdownon Nov 01 2024.

Last update: 2023-05-27
Started: 2020-04-09

Using percent_pattern

Rendered frompercent_pattern.Rmdusingknitr::rmarkdownon Nov 01 2024.

Last update: 2023-05-27
Started: 2022-12-12

Readme and manuals

Help Manual

Help pageTopics
Batch set variable labelsapply_labels
Turns a 'crosstable' object into a formatted 'flextable'af as_flextable as_flextable.crosstable cross_to_flextable ctf to_flextable
Converts a 'crosstable' object into a formatted 'gt' table.as_gt as_gt.crosstable as_gt.default
Converts a 'crosstable' object into a formatted, savable 'openxlsx' workbook.as_workbook
Add a crosstable to an 'officer' documentbody_add_crosstable
Adds a standard footnote explaining the abbreviations used in a crosstablebody_add_crosstable_footnote
Alternative to 'officer::body_add_gg()' which uses 'ggplot' syntaxbody_add_gg2
Alternative to 'officer::body_add_img()' which adds a 'units' choicebody_add_img2
Add a legend to a table or a figurebody_add_figure_legend body_add_legend body_add_table_legend
Add a list to an 'officer' documentbody_add_list body_add_list_item
Add a new paragraph with default stylebody_add_glued body_add_normal
Add a list of tablesbody_add_crosstable_list body_add_flextable_list body_add_table_list
Add a section with a table and its legendbody_add_table_section
Add a title to an 'officer' documentbody_add_title
Replace text on several bookmarks at oncebody_replace_text_at_bkms
Cleans names of a dataframe while retaining old names as labelsclean_names_with_labels
Confidence interval of a numeric vectorconfint_numeric
Summarize a numeric vectorcross_summary
Easily describe datasetscrosstable
Default arguments for calculating and displaying effects in 'crosstable()'crosstable_effect_args
Options for the package 'crosstable'crosstable_options
See which 'crosstable' option is currently set.crosstable_peek_options
Reset all 'crosstable' options.crosstable_reset_options
Default arguments for calculating and displaying tests in 'crosstable()'crosstable_test_args test_args
Generic function to compact a table (publication formatting)compact compact.crosstable compact.data.frame compact.default ct_compact ct_compact.crosstable ct_compact.data.frame ct_compact.default
Default function to display the effectdisplay_effect
Default function to display a test resultdisplay_test
List Word bookmarks, including the ones in header and footerdocx_bookmarks2
Effect measure for association between one continuous and one categorical variablediff_mean_auto diff_mean_boot diff_mean_student diff_median diff_median_boot effect_summary
Effect measure for association between one censored variable and one categorical variableeffect_survival effect_survival_coxph
Effect measure for association between two categorical variableseffect_odds_ratio effect_relative_risk effect_risk_difference effect_tabular
Format numbers with the exact same number of decimals, including trailing zerosformat_fixed
Generate a macro file for autofittinggenerate_autofit_macro
Get label if wanted and available, or default (name) otherwiseget_label
Percent pattern helperget_percent_pattern
Import labelsimport_labels save_labels
Modified 'iris' datasetiris2
Test if an object is a crosstableis.compacted_crosstable is.crosstable is.multiby_crosstable is.transposed_crosstable
Modified 'mtcars' datasetmtcars2
Return the number of non NA observationsN
Return the number of NA observationsna
Remove missing valuesnarm
Open a 'crosstable' in a temporary documentpeek
Pivot a crosstablepivot_crosstable
Format p values (alternative to 'format.pval()')plim
Remove all label attributes.remove_label remove_labels
Rename every column of a dataframe with its labelrename_dataframe_with_labels rename_with_labels
Set the "label" attribute of an objectcopy_label_from set_label
Summary functionsmeanCI meansd mediqr minmax moystd nna summaryFunctions
test for correlation coefficientstest_correlation_auto
test for mean comparisontest_summarize_auto
Test for linear trend across ordered factor with contraststest_summarize_linear_contrasts
test for survival comparisontest_survival_logrank
test for contingency tabletest_tabular_auto
Transpose a crosstablet.crosstable transpose_crosstable
Alternative to default 'officer' print() function. Write the file and try to open it right away.write_and_open