inv: Inverting scales

Description Usage Arguments Examples

View source: R/invert_scales.R

Description

Inverting scales

Usage

1
inv(x, min, max)

Arguments

x

A vector of numeric data.

min

The minimum value of the scale.

max

The maximum value of the scale.

Examples

1
2
3
# Assuming you have a Likert-scale from 1 to 9
x <- c(4, 5, 2, 3, 7, 8, 3)
inv(x, 1, 9)

tadaadata/tadaatoolbox documentation built on June 3, 2020, 10:34 a.m.