zscore: Convenience wrapper for scale that returns a vector instead...

zscoreR Documentation

Convenience wrapper for scale that returns a vector instead of a matrix / array

Description

Wrapper for scale() that returns a vector. [Stable]

Usage

zscore(.data, center = TRUE, scale = TRUE)

Arguments

.data

numeric vector of values to be scaled

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.

Value

A vector of scaled values.

Examples

# 1:20 %>% zscore()
#
# zscore(1:20)

IntegralEnvision/integral documentation built on Nov. 4, 2024, 2 p.m.