scale_blank: Scales a vector and returns it without attributes

View source: R/misc.R

scale_blankR Documentation

Scales a vector and returns it without attributes

Description

The base::scale() function adds attributes to the output that can lead to problems later on. This function scales a vector and strips the attributes.

Usage

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

Arguments

x

a numeric matrix(like object).

center

either a logical value or numeric-alike vector of length equal to the number of columns of x, where ‘numeric-alike’ means that as.numeric(.) will be applied successfully if is.numeric(.) is not true.

scale

either a logical value or a numeric-alike vector of length equal to the number of columns of x.


LukasWallrich/timesaveR documentation built on Nov. 29, 2024, 4:47 a.m.