normalisation {ASICS} | R Documentation

## Normalisation

### Description

Normalise a data frame of spectra by the area under the curve.

### Usage

    normalisation(spectra)

### Arguments

`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).

### Value

A data frame with normalised spectra in columns and chemical shifts (in ppm) in rows.

### Examples

    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)

[Package ASICS version 1.0.1 Index]