Learn R Programming

S4DM (version 0.0.1)

descale_w_objects: Return scaled variables to the original scale using means and SDs

Description

A little function to rescale data using vectors of means and sds

Usage

descale_w_objects(data, mean_vector, sd_vector)

Arguments

data

dataframe or matrix for rescaling

mean_vector

vector of means to use for rescaling. Should be one value for each column in the data

sd_vector

vector of sds to use for rescaling. Should be one value for each column in the data

Author

Brian Maitner