clean_spct: Clean a spectrum

View source: R/spct.clean.r

clean_spctR Documentation

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


photobiology documentation built on Oct. 21, 2023, 1:06 a.m.