Useful Wrappers Around Commonly Used Functions
Add backticks to names or remove them
Compute absolute and relative frequencies.
Compute absolute and relative frequencies for a table.
Shortcut for colnames()
Find numeric index and names of columns based on class(es) and pattern...
Comparison for columns of Gaussian or ordinal measures for n groups
Comparison for columns of factors for more than 2 groups with post-hoc
Comparison for columns of numbers for 2 groups
Comparison for columns of factors for 2 groups
Correlations with significance
Find outliers based on IQR
Estimation of glomerular filtration rate (eGFR) based on sex, age, and...
Find numeric index and names of columns based on patterns
Transform flextable to rmd if non-interactive
Re-format p-values, avoiding rounding to 0 and adding surprisal if req...
Print graphical representation of a correlation matrix.
Confidence interval for generalized linear models
Find and optionally remove identical columns in a data frame.
Kolmogorov-Smirnov-Test against Normal distribution
Add labels to outliers in boxplot/beeswarm.
Predefined sets of labels for plots with log-scaled axes
Convert significance levels to symbols
Compute confidence interval of mean by bootstrapping.
Compute mean and sd and put together with the ± symbol.
Compute mean and standard error of mean and put together with the ± sy...
Rename output from median_cl_boot for use in ggplot.
Compute confidence interval of median by bootstrapping.
Compute median and quartiles and put together.
Compute standard error of median.
Pairwise Fisher's exact tests
Pairwise comparison for ordinal categories
Extended pairwise t-test
Pairwise Wilcoxon tests
Enhanced knitr::kable with latex
Lineweaver-Burk diagram
Michaelis-Menten enzyme kinetics model and plot
Enhanced knitr::kable with definable number of rows and/or columns for...
Automatic rounding to a reasonable length, based on largest number
Compute standard error of median
Standard Error of Mean.
Compute surprisal aka Shannon information from p-values
Independent sample t-test with test for equal variance
Search within data.frame or tibble
Compute coefficient of variance.
Comparison for groups in clinical trials based on all possible combina...
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.
Useful links