normalisation {ASICS} | R Documentation |
Normalise a data frame of spectra by the area under the curve.
normalisation(spectra)
spectra |
Data frame with spectra in columns and chemical shifts in rows. Colnames of this data frame correspond to pure metabolite names and rownames to chemical shift grid (in ppm). |
A data frame with normalised spectra in columns and chemical shifts (in ppm) in rows.
current_path <- file.path(system.file("extdata", package = "ASICS"), "spectra_example.txt") spectra_data <- read.table(current_path, header = TRUE, row.names = 1) spectra_norm <- normalisation(spectra_data)