rescale_unit: rescaling to unit interval

Description Usage Arguments Value Author(s)

View source: R/data_manipulation.R

Description

scales a variable to the interval [0;1]

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
rescale_unit(
  x,
  lower = min(x, na.rm = T),
  upper = max(x, na.rm = T),
  scale = 1
)

rescale_zero_one(
  x,
  lower = min(x, na.rm = T),
  upper = max(x, na.rm = T),
  scale = 1
)

Arguments

x

numerical vector

lower

lowest possible value

upper

highest possible value

Value

numerical vector

Author(s)

Martin Schmettow


schmettow/mascutils documentation built on May 12, 2020, 11:39 a.m.