score_surveys: score_surveys

Description Usage Arguments Value Examples

Description

Takes a dataframe of numeric items and calculates a score

Usage

1
2
3
score_surveys(items, min_num_items = ncol(items))

score_surveys(items, min_num_items = ncol(items))

Arguments

items

A dataframe of numeric questionnaire items.
Note: If items is not a dataframe, the function will stop and return an error message.

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

Value

Scores for each case (i.e., row)

Scores for each row

Examples

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)

jameswgriffith/jamie documentation built on Dec. 20, 2021, 9:03 p.m.