Skip to contents

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)