Package: bruceR 2026.1

bruceR: Broadly Useful Convenient and Efficient R Functions

Broadly useful convenient and efficient R functions that bring users concise and elegant R data analyses. This package includes easy-to-use functions for (1) basic R programming (e.g., set working directory to the path of currently opened file; import/export data from/to files in any format; print tables to Microsoft Word); (2) multivariate computation (e.g., compute scale sums/means/... with reverse scoring); (3) reliability analyses and factor analyses; (4) descriptive statistics and correlation analyses; (5) t-test, multi-factor analysis of variance (ANOVA), simple-effect analysis, and post-hoc multiple comparison; (6) tidy report of statistical models (to R Console and Microsoft Word); (7) mediation and moderation analyses (PROCESS); and (8) additional toolbox for statistics and graphics.

Authors:Han Wu Shuang Bao [aut, cre]

bruceR_2026.1.tar.gz
bruceR_2026.1.zip(r-4.7)bruceR_2026.1.zip(r-4.6)bruceR_2026.1.zip(r-4.5)
bruceR_2026.1.tgz(r-4.6-any)bruceR_2026.1.tgz(r-4.5-any)
bruceR_2026.1.tar.gz(r-4.7-any)bruceR_2026.1.tar.gz(r-4.6-any)
bruceR_2026.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
bruceR/json (API)
NEWS

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

Bug tracker:https://github.com/psychbruce/brucer/issues

Pkgdown/docs site:https://psychbruce.github.io

On CRAN:

Conda:

anovadata-analysisdata-sciencelinear-modelslinear-regressionmultilevel-modelsstatisticstoolbox

8.61 score 192 stars 3 packages 354 scripts 2.7k downloads 1 mentions 70 exports 159 dependencies

Last updated from:607f8fe609. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK243
source / vignettesOK280
linux-release-x86_64OK250
macos-release-arm64OK104
macos-oldrel-arm64OK109
windows-develOK145
windows-releaseOK148
windows-oldrelOK142
wasm-releaseOK188

Exports:.mean.sum%^%%allin%%anyin%%nonein%%notin%%partin%addaddedAlphaccccf_plotCFACONSECcor_diffcor_multilevelCorrCOUNTDescribedtimeEFAEMMEANSexportformatFformatNformula_expandformula_pasteFreqGLM_summaryGluegrand_mean_centergranger_causalitygranger_testgroup_mean_centerHLM_ICC_rWGHLM_summaryimportlavaan_summaryLOOKUPMANOVAMEANmed_summaryMODEmodel_summarypp.chi2p.fp.rp.tp.zPCApkg_dependPrintprint_tablePROCESSRECODEregressrep_charRESCALERGBRunscalerset_wdset.wdshow_colorsSTDSUMtheme_bruceTTEST

Dependencies:abindafexaskpassbackportsbase64encbayestestRbitbit64bootbroombroom.mixedbslibcachemcarcarDatacellrangercheckmateclicliprclustercodacodetoolscolorspacecowplotcpp11crayoncurldata.tabledatawizardDerivdigestdoBydplyreffectsizeemmeansestimabilityevaluatefarverfastmapfontawesomeforcatsforecastforeignFormulafracdifffsfurrrfuturegenericsggplot2globalsglueGPArotationgridExtragtablehavenhighrHmischmshtmlTablehtmltoolshtmlwidgetshttrinsightinteractionsisobandjquerylibjsonlitejtoolsknitrlabelinglatticelavaanlifecyclelistenvlme4lmerTestlmtestlpSolvemagrittrMASSMatrixMatrixModelsmediationmemoisemgcvmicrobenchmarkmimeminqamnormtmodelrmvtnormnlmenloptrnnetnumDerivopensslpanderparallellyparameterspbivnormpbkrtestperformancepillarpkgconfigplyrprettyunitsprogresspsychpurrrquadprogquantregR.methodsS3R.ooR.utilsR6rappdirsrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreadrreadxlreformulasrematchreshape2riorlangrmarkdownrpartrstudioapiS7sandwichsassscalesSparseMstringistringrsurvivalsystexregtibbletidyrtidyselecttimeDatetinytextzdburcautf8vctrsviridisLitevroomwithrwritexlxfunyamlzoo

Readme and manuals

Help Manual

Help pageTopics
bruceR: *BR*oadly *U*seful *C*onvenient and *E*fficient *R* functionsbruceR-package bruceR
Multivariate computation.%%COMPUTE%% .mean .sum CONSEC COUNT MEAN MODE STD SUM
Paste strings together.%^%
A simple extension of '%in%'.%allin%
A simple extension of '%in%'.%anyin%
A simple extension of '%in%'.%nonein%
A simple extension of '%in%'.%partin%
Create, modify, and delete variables.add added
Reliability analysis (Cronbach's alpha and McDonald's omega).Alpha
Split up a string (with separators) into a character vector.cc
Cross-correlation analysis.ccf_plot
Confirmatory Factor Analysis (CFA).CFA
Test the difference between two correlations.cor_diff
Multilevel correlations (within-level and between-level).cor_multilevel
Correlation analysis.Corr
Descriptive statistics.Describe
Timer (compute time difference).dtime
Principal Component Analysis (PCA) and Exploratory Factor analysis (EFA).EFA PCA
Simple-effect analysis and post-hoc multiple comparison.EMMEANS
Export data to a file (TXT, CSV, Excel, SPSS, Stata, ...) or clipboard.export
Format numeric values.formatF
Format "1234" to "1,234".formatN
Expand all interaction terms in a formula.formula_expand
Paste a formula into a string.formula_paste
Frequency statistics.Freq
Tidy report of GLM ('lm' and 'glm' models).GLM_summary
Grand-mean centering.grand_mean_center
Granger causality test (multivariate).granger_causality
Granger causality test (bivariate).granger_test
Group-mean centering.group_mean_center
Tidy report of HLM indices: ICC(1), ICC(2), and rWG/rWG(J).HLM_ICC_rWG
Tidy report of HLM ('lmer' and 'glmer' models).HLM_summary
Import data from a file (TXT, CSV, Excel, SPSS, Stata, ...) or clipboard.import
Tidy report of lavaan model.lavaan_summary
Search, match, and look up values (like Excel's functions 'INDEX + MATCH').LOOKUP
Multi-factor ANOVA.MANOVA
Tidy report of mediation analysis.med_summary
Tidy report of regression models.model_summary
Compute _p_ value.p p.chi2 p.f p.r p.t p.z
Check dependencies of R packages.pkg_depend
Print strings with rich formats and colors.Glue Print
Print a three-line table (to R Console and Microsoft Word).print_table
Model-based mediation and moderation analyses (named after but distinct from SPSS PROCESS).PROCESS
Recode a variable.RECODE
Regression analysis.regress
Repeat a character string for many times and paste them up.rep_char
Rescale a variable (e.g., from 5-point to 7-point).RESCALE
A simple extension of 'rgb()'.RGB
Run code parsed from text.Run
Min-max scaling (min-max normalization).scaler
Set working directory to the path of currently opened file.set.wd set_wd
Show colors.show_colors
A nice 'ggplot2' theme that enables Markdown/HTML rich text.theme_bruce
One-sample, independent-samples, and paired-samples t-test.TTEST