invert: Invert scales with any number of answer options

View source: R/invert.r

invertR Documentation

Invert scales with any number of answer options

Description

This function allows to easily invert items with any number of answer options.

Usage

invert(x, length = 5)

Arguments

x

The variable that should be inverted (needs to be numeric!).

length

Number of answer options (defaults to )

Value

A vector representing the recoded variable.


masurp/pmmisc documentation built on May 3, 2024, 7:13 p.m.