Description Usage Arguments Value Examples
Takes a dataframe of numeric items and calculates a score
1 2 3 | score_surveys(items, min_num_items = ncol(items))
score_surveys(items, min_num_items = ncol(items))
|
items |
A dataframe of numeric questionnaire items. |
min_num_items |
The minimum number of items needed to score the questionnaire. If not enough items are present, the score will be NA. If some items are missing, but the number of non-missing items is min_num_items or higher, then the score will be prorated. By default, all items are required |
Scores for each case (i.e., row)
Scores for each row
1 2 3 4 5 6 7 | ## Not run:
# score_surveys(rrs, 10)
# score_surveys(rrs, 8)
## End(Not run)
# score_surveys(rrs, 10)
# score_surveys(rrs, 8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.