Learn R Programming

S4DM (version 0.0.1)

rescale_w_objects: Rescale a dataset using vectors of means and SDs

Description

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

Usage

rescale_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