rescale_data: Scale data

View source: R/rescalatedFunctions.R

rescale_dataR Documentation

Scale data

Description

Standardize the numeric columns of a data.frame.

Usage

rescale_data(data, v_mean = NULL, v_sd = NULL)

Arguments

data

data.frame containing the variables to be standardized.

v_mean

vector of means of the data.frame. The value for the non-numeric columns should be NA. If not given, it is computed from data.

v_sd

vector of standard deviations of the data.frame. The value for the non-numeric columns should be NA. If not given, it is computed from data.

Value

A data.frame with scaled data. Non-numeric columns are also returned in their original position.


MoTBFs documentation built on Oct. 6, 2026, 1:06 a.m.