Learn R Programming

DescrTab2

Publication quality descriptive statistics tables with R

Provides functions to create descriptive statistics tables for continuous and categorical variables. By default, summary statistics such as mean, standard deviation, quantiles, minimum and maximum for continuous variables and relative and absolute frequencies for categorical variables are calculated. DescrTab2 features a sophisticated algorithm to choose appropriate test statistics for your data and provides p-values. On top of this, confidence intervals for group differences of appropriated summary measures are automatically produces for two-group comparison.

Tables generated by DescrTab2 can be integrated in a variety of document formats, including .html, .tex and .docx documents. DescrTab2 also allows printing tables to console and saving table objects for later use.

You can also install the development version of DescrTab2 (recommended) from github by typing:

remotes::install_github("https://github.com/imbi-heidelberg/DescrTab2")

You may also install the stable version of DescrTab2 from cran by typing

install.packages("DescrTab2")

into your R console.

This article may be useful to get aquainted with DescTab2:

https://imbi-heidelberg.github.io/DescrTab2/articles/a_usage_guide.html

You may also check out our documentation page which hosts serveral long-form documentation articles:

https://imbi-heidelberg.github.io/DescrTab2/

Copy Link

Version

Install

install.packages('DescrTab2')

Monthly Downloads

360

Version

2.1.16

License

GPL (>= 3)

Maintainer

Jan Meis

Last Published

September 6th, 2022

Functions in DescrTab2 (2.1.16)

in_minipage

Wrap cell text in minipage LaTeX environment with stretchy space
knit_print.DescrList

S3 override for knit_print function for DescrList objects.
ignore_unused_args

do.call but without an error for unused arguments
lapply_descr

Convenience function to apply descr to a list of datasets and print the results
n_int_digits

Digits before decimal -1
format_freqs

Formatting function for absolute and relative frequencies
list_freetext_markdown

Create a markdown listing from a character dataset
knit_print.DescrPrint

S3 override for knit_print function for DescrPrint objects.
parse_formats

Parse a text file containing format information
print.DescrList

S3 override for print function for DescrList objects.
print.DescrPrint

S3 override for print function for DescrPrint objects
unlabel

Remove the label attribute from data
split_redcap_dataset

Split a dataset imported from Redcap into convenient subsets
write_in_tmpfile_for_cran

Function that returns true in CRAN submission
sig_test

Calculates a statistical significance test
sigfig_gen

Generator function for nice formatting functions
sigfig

Format number to a specified number of digits, considering threshold for usage of scientific notation
read_sas_formatted

Convencience function to load SAS datasets
guess_ID_variable

Make an educated guess about the name of the ID variable from a dataset
print_test_names

Prints all possible tests names
read_redcap_formatted

Convencience function to load datasets downloaded from a Redcap database
.onLoad

Load LaTeX packages
extract_labels

Extract the label attribute from data
escape_latex_symbols

Escape LaTeX Symbols
codegen_load_all_sas_data

Create code to load all SAS datasets in a folder.
create_character_subtable

Function to create (a part of a) nicely formatted table
farrington.manning

Farrington-Manning test for rate difference
create_numeric_subtable

Function to create (a part of a) nicely formatted table
descr

Calculate descriptive statistics
DescrTab2

DescrTab2
can.be.numeric

Check whether a vector (usually a factor) can be cleanly converted to a numeric