reverse: reverse

View source: R/reverse.R

reverseR Documentation

reverse

Description

Reverse scores a value based on (1) the value (i.e., 'x'), (2) the lowest possible value (i.e., 'low'), and (3) the highest possible value (i.e., 'high').

Usage

reverse(x, low = 1, high = 5)

Arguments

x

a numeric scalar to be reverse-scored.

low

a numeric scalar representing the lowest possible value. Defaults to '1'.

high

a numeric scalar representing the highest possible value. Defaults to '5'.


camkay/panoply documentation built on Jan. 17, 2025, 6:31 a.m.