Learn R Programming

photobiology (version 0.11.4)

make_wl_consistent: Make wavelengths consistent

Description

Ensure wavelengths in all spectra in a mspct object are consistent, filling head and tail of spectral quantities when needed with NAs, and using interpolation if needed. If individual spct objects contain multiple spectra in long form these are split into multiple spct objects, each containing data for one spectrum.

Usage

make_wl_consistent(x, w.length.out = NULL)

Arguments

x

a generic_spct object

w.length.out

numeric vector of wavelengths (nanometres)