reverse: Score reversing

View source: R/scoring.R

reverseR Documentation

Score reversing

Description

Reverse the response of a score, inverting the minimum with the maximum.

Usage

reverse(x, x.min = min(x), x.max = max(x))

Arguments

x

Numerical vector of scores.

x.min

Theoretical minimum of x.

x.max

Theoretical maximum of x.

Details

The function allows to reverse the responses to an item.

Examples

x <- 1:4
reverse(x)
reverse(x,1,5)

DavideMassidda/testing documentation built on Oct. 12, 2023, 4:32 p.m.