from0to100: Function to rescale a vector to 0-100 scale

View source: R/utils.R

from0to100R Documentation

Function to rescale a vector to 0-100 scale

Description

This function takes any vector and rescales it in a linear way so that the new range is 0 to 100. Useful specially when creating indicators

Usage

from0to100(x)

Arguments

x

numeric vector to rescale to 0-100

Value

numeric vector in a 0-100 scale

Author(s)

Gabriel N. Camargo-Toledo gcamargo@sensata.io

Examples

x <- c(1,2,3,1,3,2,4,5,4,3,2,5,4,3,2,1,4,5)
from0to100(x)

SensataUX/sensataDataProg documentation built on April 18, 2023, 3:48 p.m.