scale_data: scale_data

View source: R/scale_method.R

scale_dataR Documentation

scale_data

Description

Scale data.

Usage

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

Arguments

x

mass_dataset

center

center or not. TRUE or FALSE.

method

auto, uv, range, pareto or none.

Value

scaled mass_dataset

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

library(massdataset)
data("expression_data")
data("sample_info")
data("sample_info_note")
data("variable_info")
data("variable_info_note")
object =
  create_mass_dataset(
    expression_data = expression_data,
    sample_info = sample_info,
    variable_info = variable_info,
    sample_info_note = sample_info_note,
    variable_info_note = variable_info_note
  )
object
scale_data(object, method = "auto")
scale_data(object, method = "range")
scale_data(object, method = "pareto")
scale_data(object, method = "none")

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