Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


doBy (version 4.6.16)

scale2: Scale a dataframe or matrix

Description

Similar to 'base::scale' but scales / centers only numeric values in data.

Usage

scale2(x, center = TRUE, scale = TRUE)

Value

An object of same class as x

Arguments

x

dataframe or matrix

center

Logical, should data be centered.

scale

Logical, should data be scaled.

Examples

Run this code

scale2(iris)

Run the code above in your browser using DataLab