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

View source: R/get_env_bg.R

descale_w_objectsR Documentation

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(s)

Brian Maitner


bmaitner/pbsdm documentation built on Feb. 8, 2025, 2:27 p.m.