normalize_data: normalize_data

View source: R/normalize_data.R

normalize_dataR Documentation

normalize_data

Description

Data normalization.

Usage

normalize_data(
  object,
  method = c("svr", "total", "median", "mean", "pqn", "loess"),
  keep_scale = TRUE,
  optimization = TRUE,
  pqn_reference = c("median", "mean"),
  begin = 0.5,
  end = 1,
  step = 0.2,
  multiple = 1,
  threads = 4
)

Arguments

object

A mass_dataset object.

method

Normalization method, mean, median, total svr or loess, default is svr. Please see the details.

keep_scale

Remain scale or not. Default is TRUE.

optimization

TRUE or not.

pqn_reference

for pqn method.

begin

0.5

end

1

step

0.2

multiple

multiple

threads

4

Value

A new mass_dataset object.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

## Not run: 
data("object1", package = "demodata")
object1 = impute_mv(object1, method = "minimum")
object_mean = normalize_data(object = object1, method = "mean")

## End(Not run)

tidymass/masscleaner documentation built on Sept. 4, 2023, 3:21 a.m.