unscale: Unscale

Description Usage Arguments Details Value Examples

View source: R/unscale.R

Description

Given a scaled numerical object, unscales back to original

Usage

1

Arguments

x

a numerical function that has been scaled (with scale())

Details

Uses attributes of a scaled object to return it back to the original

Value

unscaled values for x

Examples

1
2
3
4
5
6
7
x <- matrix(1:10)
scaled_x <- scale(x)
unscale(scaled_x)

x2 <- matrix(1:10, ncol=5)
scaled_x2 <- scale(x2)
unscale(scaled_x2)

frankchien/bmi585flc documentation built on Dec. 20, 2021, 8:51 a.m.