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)

tadaatoolbox documentation built on July 2, 2020, 2:30 a.m.