rescale: Rescale bounded variable to given range

View source: R/rescale.R

rescaleR Documentation

Rescale bounded variable to given range

Description

Uses a linear transformation to rescale variable to a specific range (e.g., [0,1] to adhere to a beta distribution). The new minimum/maximum will be equal to the lower/upper bound.

Usage

rescale(y, min = 0, max = 1)

Arguments

y

vector of numeric values

min

numeric value defining the minimum of the target range

max

numeric value defining the maximum of target range


danheck/gpt documentation built on Feb. 12, 2024, 6:21 a.m.