Learn R Programming

spant (version 4.4.0)

set_spec_values: Set spectral data points to a given value.

Description

Set spectral data points to a given value.

Usage

set_spec_values(mrs_data, xlim = NULL, value = 0, invert = FALSE)

Value

mrs_data object with modified spectral data points.

Arguments

mrs_data

data to be processed.

xlim

spectral region (in ppm) of data points to set. If NULL (default) all spectral points will be set.

value

value to set the spectral region. Defaults to zero.

invert

set all spectral points outside the spectral region to the given value.