Package: bruceR 2024.6

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_2024.6.tar.gz
bruceR_2024.6.zip(r-4.5)bruceR_2024.6.zip(r-4.4)bruceR_2024.6.zip(r-4.3)
bruceR_2024.6.tgz(r-4.5-any)bruceR_2024.6.tgz(r-4.4-any)bruceR_2024.6.tgz(r-4.3-any)
bruceR_2024.6.tar.gz(r-4.5-noble)bruceR_2024.6.tar.gz(r-4.4-noble)
bruceR_2024.6.tgz(r-4.4-emscripten)bruceR_2024.6.tgz(r-4.3-emscripten)
bruceR.pdf |bruceR.html
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 site:https://psychbruce.github.io

On CRAN:

anovadata-analysisdata-sciencelinear-modelslinear-regressionmultilevel-modelsstatisticstoolbox

7.70 score 174 stars 3 packages 316 scripts 2.0k downloads 1 mentions 71 exports 155 dependencies

Last updated 8 months agofrom:070fb0a91e. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 11 2025
R-4.5-winOKFeb 11 2025
R-4.5-macOKFeb 11 2025
R-4.5-linuxOKFeb 11 2025
R-4.4-winOKFeb 11 2025
R-4.4-macOKFeb 11 2025
R-4.3-winOKFeb 11 2025
R-4.3-macOKFeb 11 2025

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_dependpkg_install_suggestedPrintprint_tablePROCESSRECODEregressrep_charRESCALERGBRunscalerset_wdset.wdshow_colorsSTDSUMtheme_bruceTTEST

Dependencies:abindafexaskpassbackportsbase64encbayestestRbitbit64bootbroombroom.mixedbslibcachemcarcarDatacellrangercheckmateclicliprclustercodacodetoolscolorspacecowplotcpp11crayoncurldata.tabledatawizardDerivdigestdoBydplyreffectsizeemmeansestimabilityevaluatefansifarverfastmapfontawesomeforcatsforeignFormulafsfurrrfuturegenericsggplot2globalsglueGPArotationgridExtragtablehavenhighrHmischmshtmlTablehtmltoolshtmlwidgetshttrinsightinteractionsisobandjquerylibjsonlitejtoolsknitrlabelinglatticelavaanlifecyclelistenvlme4lmerTestlpSolvemagrittrMASSMatrixMatrixModelsmediationmemoisemgcvmicrobenchmarkmimeminqamnormtmodelrmunsellmvtnormnlmenloptrnnetnumDerivopensslpanderparallellyparameterspbivnormpbkrtestperformancepillarpkgconfigplyrprettyunitsprogresspsychpurrrquadprogquantregR.methodsS3R.ooR.utilsR6rappdirsrbibutilsRColorBrewerRcppRcppEigenRdpackreadrreadxlreformulasrematchreshape2riorlangrmarkdownrpartrstudioapisandwichsassscalesSparseMstringistringrsurvivalsystexregtibbletidyrtidyselecttinytextzdbutf8vctrsviridisviridisLitevroomwithrwritexlxfunyamlzoo

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%
The opposite of '%in%'.%notin%
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
Install suggested R packages.pkg_install_suggested
Print strings with rich formats and colors.Glue Print
Print a three-line table (to R Console and Microsoft Word).print_table
PROCESS for mediation and/or moderation analyses.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