photobiology (version 0.9.25)

clean_spct: Clean a spectrum

Description

These functions implement the equivalent of replace() but for spectral objects instead of vectors.

Usage

clean_spct(x, range, range.s.data, fill, col.names, col.pattern = NULL,
  ...)

Arguments

x

an R object

range

numeric vector of wavelengths

range.s.data

numeric vector of length two giving the allowable range for the spectral data.

fill

numeric vector of length 1 or 2, giving the replacement values to use at each extreme of the range.

col.names

character The name of the variable to clean.

...

currently ignored