scale_func: Scale Variables for PCA

View source: R/functions.R

scale_funcR Documentation

Scale Variables for PCA

Description

This function allow us to scale the variable within a dataframe or matrix for PCA.

Usage

scale_func(x)

Arguments

x

numeric variables used to determine principal components for subsequent PCA.

Value

The variable minus the mean of the variables, divided by standard deviation of variables.

Examples

scale_func(wbg)

ajnafkertesz/PCA documentation built on May 14, 2022, 12:08 a.m.