Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bruceR-package

bruceR: BRoadly Useful Convenient and Efficient R functions


Description

BRoadly Useful Convenient and Efficient R functions that BRing Users Concise and Elegant R data analyses.

Install the latest development version by devtools::install_github("psychbruce/bruceR")

Check updates in Release Notes.

Report bugs in GitHub Issues.

Loading bruceR by library(bruceR) will also load these R packages for you:

[Data]:

  • rio: Data import and export (for all file formats). (import / export)

  • dplyr: Data manipulation and processing.

  • tidyr: Data cleaning and reshaping.

  • stringr: Toolbox for string operation (with regular expressions).

  • forcats: Toolbox for factor manipulation (for categorical variables).

  • data.table: Advanced data.frame with higher efficiency.

[Stat]:

  • psych: Toolbox for psychological and psychometric research.

  • emmeans: Toolbox for estimated marginal means and contrasts.

  • effectsize: Indices of effect size and standardized parameters.

  • performance: Assessment of regression models performance.

[Plot]:

  • ggplot2: Data visualization.

  • ggtext: Markdown/HTML rich text format for ggplot2 (geoms and themes).

  • cowplot: Advanced toolbox for ggplot2 (arrange multiple plots and add labels).

  • see: Advanced toolbox for ggplot2 (geoms, scales, themes, and color palettes).

Main Functions in bruceR

(1) Basic R Programming

set.wd

pkg_depend, pkg_install_suggested

formatF, formatN

Print, Glue, Run

%^%

%notin%

%allin%, %anyin%, %nonein%, %partin%

(2) Multivariate Computation

SUM, MEAN, STD, MODE, COUNT, CONSEC

RECODE, RESCALE, RANDBETWEEN

LOOKUP

(3) Reliability and Factor Analyses

Alpha

EFA

CFA

(4) Descriptive Statistics and Correlation Analyses

Describe

Freq

Corr

cor_diff

(5) Multi-Factor ANOVA, Simple-Effect Analysis, and Post-Hoc Multiple Comparison

MANOVA

EMMEANS

(6) Tidy Report of Regression Models

model_summary

GLM_summary

HLM_summary

HLM_ICC_rWG

regress

(7) Mediation and Moderation Analyses

med_summary

PROCESS (coming soon...)

(8) Additional Toolbox for Statistics and Graphics

grand_mean_center

group_mean_center

ccf_plot

granger_test

theme_bruce

show_colors

Note

Please always use RStudio as an IDE instead of using the raw R software.

Author(s)


bruceR

Broadly Useful Convenient and Efficient R Functions

v0.6.2
GPL-3
Authors
Han-Wu-Shuang Bao [aut, cre]
Initial release
2021-04-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.