scale_data2: scale_data2

View source: R/scale_method.R

scale_data2R Documentation

scale_data2

Description

Scale data.

Usage

scale_data2(
  x,
  center = TRUE,
  method = c("auto", "uv", "range", "pareto", "none")
)

Arguments

x

data.frame or mass_dataset. Rows are variables and columns are samples.

center

center or not. TRUE or FALSE.

method

auto, uv, range, pareto or none.

Value

scaled data.frame.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

x <- as.data.frame(matrix(1:10, ncol = 5))
colnames(x) = letters[1:5]
scale_data1(x, method = "auto")
t(scale(t(x)))
scale_data1(x, method = "range")
scale_data1(x, method = "pareto")
scale_data1(x, method = "none")

tidymass/massstat documentation built on March 12, 2024, 6:24 a.m.