Description Usage Arguments Value Examples
View source: R/compute_summary_score.R
Compute sum and average scores
1 | compute_summary_score(df, pattern, score_name, score_type = "average")
|
df |
A data frame |
pattern |
A regex string specifying which variables to compute summary scores on. |
score_name |
The name of the score variable. Specify as string. |
score_type |
The name of the score type. Currently supports: average, sum |
A data frame with new summary score column. The new column name is score_name
1 | compute_summary_score(stress_questionnaire, score_name = "physical_stress_average", score_type = "average")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.