reverse: reverse() it reverse a score in a linear way, using the...

View source: R/reverse.R

reverseR Documentation

reverse() it reverse a score in a linear way, using the minimum and maximum values. Is often use onto likert type response variables, when the original responses are not coded with values that follow the direction of higher values are higher level of the attribute.

Description

reverse() it reverse a score in a linear way, using the minimum and maximum values. Is often use onto likert type response variables, when the original responses are not coded with values that follow the direction of higher values are higher level of the attribute.

Usage

reverse(var)

Arguments

x

a numeric vector

Value

a reverse coded numeric vector

Examples


items_data <- items_data %>%
              mutate(item = reverse(original))
dplyr::count(items_data, original, item)


dacarras/r4sda documentation built on Nov. 9, 2023, 10:17 a.m.