Learn R Programming

metamorphr (version 0.2.0)

transform_power: Transforms the intensities by calculating their nth root

Description

Calculates the nth root of intensities with x^(1/n). The default (n = 2) calculates the square root. This transformation can help reduce heteroscedasticity. See references for more information.

Usage

transform_power(data, n = 2)

Value

A tibble with power-transformed intensities.

Arguments

data

A tidy tibble created by read_featuretable.

n

The nth root to calculate.

References

  • R. A. Van Den Berg, H. C. Hoefsloot, J. A. Westerhuis, A. K. Smilde, M. J. Van Der Werf, BMC Genomics 2006, 7, 142, DOI 10.1186/1471-2164-7-142.

Examples

Run this code
toy_metaboscape %>%
  impute_lod() %>%
  transform_power()

Run the code above in your browser using DataLab