scale_center: scale_center

View source: R/R_preprocessing.R

scale_centerR Documentation

scale_center

Description

Given a dataframe, scale and center the continous features

Usage

scale_center(x, categoricalFeatureCols, colMeans, colSd)

Arguments

x

A dataframe in order to be processed.

categoricalFeatureCols

A vector of the categorical features, we don't want to scale/center these. Should be 1-indexed.

colMeans

A vector of the means to center each column.

colSd

A vector of the standard deviations to scale each column with.

Value

A scaled and centered dataset x


Rforestry documentation built on March 31, 2023, 11:33 p.m.