Package: wrappedtools 0.9.6

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.

Authors:Andreas Busjahn [cre, aut], Bilal Asser [aut]

wrappedtools_0.9.6.tar.gz
wrappedtools_0.9.6.zip(r-4.5)wrappedtools_0.9.6.zip(r-4.4)wrappedtools_0.9.6.zip(r-4.3)
wrappedtools_0.9.6.tgz(r-4.4-any)wrappedtools_0.9.6.tgz(r-4.3-any)
wrappedtools_0.9.6.tar.gz(r-4.5-noble)wrappedtools_0.9.6.tar.gz(r-4.4-noble)
wrappedtools_0.9.6.tgz(r-4.4-emscripten)wrappedtools_0.9.6.tgz(r-4.3-emscripten)
wrappedtools.pdf |wrappedtools.html
wrappedtools/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/abusjahn/wrappedtools/issues

Datasets:
  • faketrial - Results from a simulated clinical trial with interaction effects.

On CRAN:

descriptive-statisticstest-statistic

5.11 score 2 stars 7 scripts 577 downloads 47 exports 120 dependencies

Last updated 1 months agofrom:c0238c1521. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 09 2024
R-4.5-winNOTENov 09 2024
R-4.5-linuxNOTENov 09 2024
R-4.4-winOKNov 09 2024
R-4.4-macOKNov 09 2024
R-4.3-winOKNov 09 2024
R-4.3-macOKNov 09 2024

Exports:btcat_desc_statscat_desc_tablecnColSeekercompare_n_numvarscompare_n_qualvarscompare2numvarscompare2qualvarscortestRdetect_outlierseGFRFindVarsflex2rmdformatPggcormatglmCIksnormallabel_outlierslogrange_1logrange_123456789logrange_12357logrange_15logrange_5markSignmeansdmeansemedian_cl_bootmedian_cl_boot_ggmedian_quartmediansepairwise_fisher_testpairwise_ordcat_testpairwise_t_testpairwise_wilcox_testpdf_kableplot_LBplot_MMprint_kableroundRse_medianSEMsurprisalt_var_testtab.searchvar_coeffWINratio

Dependencies:askpassbackportsbase64encbitbit64bootbroombslibcachemcellrangerclassclicliprcodetoolscoincolorspacecpp11crayoncurldata.tableDescToolsdigestdplyre1071evaluateExactexpmfansifarverfastmapflextablefontawesomefontBitstreamVerafontLiberationfontquiverforcatsfsgdtoolsgenericsggplot2gldgluegtablehavenhighrhmshtmltoolshttrisobandjquerylibjsonlitekableExtraknitrlabelinglatticelibcoinlifecyclelmommagrittrMASSMatrixmatrixStatsmemoisemgcvmimemodeltoolsmultcompmunsellmvtnormnlmenortestofficeropensslpillarpkgconfigprettyunitsprogressproxypurrrR6raggrappdirsRColorBrewerRcppreadrreadxlrematchrlangrlistrmarkdownrootSolverstudioapisandwichsassscalesstringistringrsurvivalsvglitesyssystemfontstextshapingTH.datatibbletidyrtidyselecttinytextzdbutf8uuidvctrsviridisLitevroomwithrxfunXMLxml2yamlzipzoo

Usage of 'wrappedtools'

Rendered fromwrappedtools.Rmdusingknitr::rmarkdownon Nov 09 2024.

Last update: 2022-09-01
Started: 2021-04-28

Readme and manuals

Help Manual

Help pageTopics
Add backticks to names or remove thembt
Compute absolute and relative frequencies.cat_desc_stats
Compute absolute and relative frequencies for a table.cat_desc_table
Shortcut for colnames()cn
Find numeric index and names of columns based on class(es) and patternsColSeeker
Comparison for columns of Gaussian or ordinal measures for n groupscompare_n_numvars
Comparison for columns of factors for more than 2 groups with post-hoccompare_n_qualvars
Comparison for columns of numbers for 2 groupscompare2numvars
Comparison for columns of factors for 2 groupscompare2qualvars
Correlations with significancecortestR
Find outliers based on IQRdetect_outliers
Estimation of glomerular filtration rate (eGFR) based on sex, age, and either serum creatinine and/or cystatin CeGFR
Results from a simulated clinical trial with interaction effects.faketrial
Find numeric index and names of columns based on patternsFindVars
Transform flextable to rmd if non-interactiveflex2rmd
Re-format p-values, avoiding rounding to 0 and adding surprisal if requestedformatP
Print graphical representation of a correlation matrix.ggcormat
Confidence interval for generalized linear modelsglmCI
Kolmogorov-Smirnov-Test against Normal distributionksnormal
Add labels to outliers in boxplot/beeswarm.label_outliers
Predefined sets of labels for plots with log-scaled axeslogrange_1 logrange_123456789 logrange_12357 logrange_15 logrange_5
Convert significance levels to symbolsmarkSign
Compute mean and sd and put together with the ± symbol.meansd
Compute mean and standard error of mean and put together with the ± symbol.meanse
Compute confidence interval of median by bootstrapping.median_cl_boot
Rename output from median_cl_boot for use in ggplot.median_cl_boot_gg
Compute median and quartiles and put together.median_quart
Compute standard error of median.medianse
Pairwise Fisher's exact testspairwise_fisher_test
Pairwise comparison for ordinal categoriespairwise_ordcat_test
Extended pairwise t-testpairwise_t_test
Pairwise Wilcoxon testspairwise_wilcox_test
Enhanced knitr::kable with latexpdf_kable
Lineweaver-Burk diagramplot_LB
Michaelis-Menten enzyme kinetics model and plotplot_MM
Enhanced knitr::kable with definable number of rows and/or columns for splittingprint_kable
Automatic rounding to a reasonable length, based on largest numberroundR
Compute standard error of medianse_median
Standard Error of Mean.SEM
Compute surprisal aka Shannon information from p-valuessurprisal
Independent sample t-test with test for equal variancet_var_test
Search within data.frame or tibbletab.search
Compute coefficient of variance.var_coeff
Comparison for groups in clinical trials based on all possible combinations of subjectsWINratio