wrappedtools0.9.9 package

Useful Wrappers Around Commonly Used Functions

bt

Add backticks to names or remove them

cat_desc_stats

Compute absolute and relative frequencies.

cat_desc_table

Compute absolute and relative frequencies for a table.

cn

Shortcut for colnames()

ColSeeker

Find numeric index and names of columns based on class(es) and pattern...

compare_n_numvars

Comparison for columns of Gaussian or ordinal measures for n groups

compare_n_qualvars

Comparison for columns of factors for more than 2 groups with post-hoc

compare2numvars

Comparison for columns of numbers for 2 groups

compare2qualvars

Comparison for columns of factors for 2 groups

cortestR

Correlations with significance

detect_outliers

Find outliers based on IQR

eGFR

Estimation of glomerular filtration rate (eGFR) based on sex, age, and...

FindVars

Find numeric index and names of columns based on patterns

flex2rmd

Transform flextable to rmd if non-interactive

formatP

Re-format p-values, avoiding rounding to 0 and adding surprisal if req...

ggcormat

Print graphical representation of a correlation matrix.

glmCI

Confidence interval for generalized linear models

identical_cols

Find and optionally remove identical columns in a data frame.

ksnormal

Kolmogorov-Smirnov-Test against Normal distribution

label_outliers

Add labels to outliers in boxplot/beeswarm.

logrange_1

Predefined sets of labels for plots with log-scaled axes

markSign

Convert significance levels to symbols

mean_cl_boot

Compute confidence interval of mean by bootstrapping.

meansd

Compute mean and sd and put together with the ± symbol.

meanse

Compute mean and standard error of mean and put together with the ± sy...

median_cl_boot_gg

Rename output from median_cl_boot for use in ggplot.

median_cl_boot

Compute confidence interval of median by bootstrapping.

median_quart

Compute median and quartiles and put together.

medianse

Compute standard error of median.

pairwise_fisher_test

Pairwise Fisher's exact tests

pairwise_ordcat_test

Pairwise comparison for ordinal categories

pairwise_t_test

Extended pairwise t-test

pairwise_wilcox_test

Pairwise Wilcoxon tests

pdf_kable

Enhanced knitr::kable with latex

plot_LB

Lineweaver-Burk diagram

plot_MM

Michaelis-Menten enzyme kinetics model and plot

print_kable

Enhanced knitr::kable with definable number of rows and/or columns for...

roundR

Automatic rounding to a reasonable length, based on largest number

se_median

Compute standard error of median

SEM

Standard Error of Mean.

surprisal

Compute surprisal aka Shannon information from p-values

t_var_test

Independent sample t-test with test for equal variance

tab.search

Search within data.frame or tibble

var_coeff

Compute coefficient of variance.

WINratio

Comparison for groups in clinical trials based on all possible combina...

wrappedtools-package

wrappedtools: Useful Wrappers Around Commonly Used Functions

The main functionalities of 'wrappedtools' are: adding backticks to variable names; rounding to desired precision with special case for p-values; selecting columns based on pattern and storing their position, name, and backticked name; computing and formatting of descriptive statistics (e.g. mean±SD), comparing groups and creating publication-ready tables with descriptive statistics and p-values; creating specialized plots for correlation matrices. Functions were mainly written for my own daily work or teaching, but may be of use to others as well.

  • Maintainer: Andreas Busjahn
  • License: GPL-3
  • Last published: 2025-09-04