View source: R/make_scale_description_table.R
| make_scale_description_table | R Documentation |
Computes descriptive statistics for one or more scale total columns. Accepts either a numeric vector (single column) or a data frame with column names.
make_scale_description_table(
x = NULL,
data = NULL,
columns = NULL,
scale_names = NULL,
type = NULL
)
x |
Optional numeric vector of total scores (single column, old-style). |
data |
Optional data frame containing one or more scale columns. |
columns |
Optional character vector of column names in 'data' (new-style). |
scale_names |
Optional character vector of names for each scale. Defaults to column names. |
type |
"summary" for base::summary(), NULL (default) uses psych::describe(). |
A data frame with one row per column, containing descriptive statistics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.