Scale: Scale a data frame or matrix

Description Usage Arguments Value Examples

Description

an improvement of the base R scale function. Unlike R's standard scale function, this allows for factor columns or character columns to be present in the data, and will simply leave those untouched without throwing an error.

Usage

1
Scale(data, wts = NULL, center = TRUE, scale = TRUE)

Arguments

data

a data frame or vector

wts

weights for each row. optional and defaults to NULL.

center

should the data be centered? Defaults to TRUE.

scale

should the data be scaled? Defaults to TRUE.

Value

A data frame

Examples

1

abnormally-distributed/cvreg documentation built on May 3, 2020, 3:45 p.m.