prep_item: Prepare an item for consensus analysis

Description Usage Arguments Value Examples

Description

Prepare an item for consensus analysis

Usage

1
prep_item(item, range = NULL)

Arguments

item

The item to be recoded.

range

The range of the Likert-scale for that item. Must be a vector of at least two characters.

Value

The item itself, where all entries outside of range are recoded as NA.

Examples

1
2
3
item <- c(rep(1, 19), rep(2, 8), rep(3, 26), rep(4, 29),
          rep(5, 5), rep(NA, 5), rep(-2, 4), rep(-3, 4))
prep_item(item, range = c(1, 5)

kthorstmann/consr documentation built on May 20, 2019, 7:04 p.m.