Skip to contents

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

Usage

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