View source: R/make_alpha_table.R
| make_alpha_table | R Documentation |
Extracts only the Scale Name, Sample Size (N), and Cronbach's Alpha from a 'psych::alpha' object.
make_alpha_table(alpha_res, scale_name = "Scale")
alpha_res |
A psych::alpha object (already computed) |
scale_name |
Name of the scale (default: "Scale") |
A data frame with three columns: Scale,N, and Alpha.
## Not run:
library(psych)
res <- psych::alpha(mtcars[,1:3])
make_alpha_table(res, scale_name = "Car Scale")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.