add_scores: This functions adds the score of a given item set and a key...

Description Usage Arguments Value

View source: R/add_scores.R

Description

This functions adds the score of a given item set and a key set using the psych package

Usage

1
add_scores(df, item_prefix, keys)

Arguments

df

the dataframe to use

item_prefix

the prefix common to all items. Data is selected using dplyr::starts_with

keys

a keylist as used in the psych::scoreItems function

Value

the data frame with an added column


HCIC/r-tools documentation built on Dec. 26, 2020, 3:54 p.m.