rescale: Scale a matrix with parameters of a scaled matix

Description Usage Arguments Details Value Examples

View source: R/utils.R

Description

Scale a matrix with parameters of a scaled matix

Usage

1
rescale(X, scaled)

Arguments

X

a matrix or a data.frame to be scaled

scaled

a scaled matrixa or a scaled data.frame

Details

X is scaled by center = attr(scaled, "scaled:center") and scale = attr(scaled, "scaled:scale")

Value

a tibble

Examples

1
iris.scaled <- scale(iris[1:100,-5])

katokohaku/featureTweakR documentation built on May 17, 2019, 11:17 p.m.