Last data update: 2014.03.03
|
R: Log transformation
LogTransform | R Documentation |
Log transformation
Description
Log transform a metabolomics data matrix.
Usage
LogTransform(inputdata, base = exp(1),
saveoutput = FALSE, outputname = "log.results")
Arguments
inputdata |
A data frame in the input data format. See metabolomics for details.
|
base |
The base with respect to which logarithms are computed. The default computes the natural logarithm.
|
saveoutput |
A logical indicating whether the output should be saved as a .csv file.
|
outputname |
The name of the output file if the output has to be saved.
|
Value
The result is an object of class metabdata . This is a list containing the following elements:
output |
A normalised data matrix in the input data format.
|
samples |
A character string containing the names of the samples.
|
groups |
A character string containing the names of the groups.
|
Author(s)
Alysha M De Livera, Jairus B Bowne
Examples
data(treated)
log.data <- LogTransform(treated)$output
log.data
Results
|