likert.rescale: Rescale a vector from 0-100

Description Usage Arguments Details Examples

View source: R/Likert.R

Description

Let's say you have two scales, one in Likert5 and the other in Likert 7. With this you can compare them. The output is a scale ranging from 0 to 100

Usage

1
likert.rescale(x, Val.min, Val.max)

Arguments

x

a (non-empty) numeric vector of data values

Val.min

The supposed min value of the input. This is useful when in your scale nobody put the min value, so the scale starts from e.g., 3 rather than 0

Val.max

The supposed max value of the input. This is useful when in your scale nobody put the max value, so the scale ends at e.g., 7 rather than 9

Details

It gives you back the scale vector. it prints out also the range of the input and a statment saying whether all values are present (see 'checkAllAnswers')

Examples

1
2
3
x <- c(1,2,3,4,5,6,7,8,9,4,3,2,5,4,1,1,2,3,4,7,8,7,NA,1,2,3,5,4,0,6,7,5,4,5,6)
likert.rescale(x)
likert.rescale(x, 0,9) # with assigned a range

alemiani/explora documentation built on May 28, 2019, 4:54 p.m.