| generic_mspct {photobiology} | R Documentation |
Collection-of-spectra constructor
Description
Converts a list of spectral objects into a "multi spectrum" object by setting the class attribute of the list of spectra to the corresponding multi-spct class, check that components of the list belong to the expected class.
Usage
generic_mspct(
l = NULL,
class = "generic_spct",
ncol = 1,
byrow = FALSE,
dim = c(length(l)%/%ncol, ncol)
)
calibration_mspct(l = NULL, ncol = 1, byrow = FALSE, ...)
raw_mspct(l = NULL, ncol = 1, byrow = FALSE, ...)
cps_mspct(l = NULL, ncol = 1, byrow = FALSE, ...)
source_mspct(l = NULL, ncol = 1, byrow = FALSE, ...)
filter_mspct(l = NULL, ncol = 1, byrow = FALSE, ...)
reflector_mspct(l = NULL, ncol = 1, byrow = FALSE, ...)
object_mspct(l = NULL, ncol = 1, byrow = FALSE, ...)
solute_mspct(l = NULL, ncol = 1, byrow = FALSE, ...)
response_mspct(l = NULL, ncol = 1, byrow = FALSE, ...)
chroma_mspct(l = NULL, ncol = 1, byrow = FALSE, ...)
Arguments
l |
list of generic_spct or derived classes |
class |
character The multi spectrum object class or the expected class for the elements of l |
ncol |
integer Number of 'virtual' columns in data |
byrow |
logical If |
dim |
integer vector of dimensions |
... |
ignored |
Functions
-
calibration_mspct(): Specialization for collections ofcalibration_spctobjects. -
raw_mspct(): Specialization for collections ofraw_spctobjects. -
cps_mspct(): Specialization for collections ofcps_spctobjects. -
source_mspct(): Specialization for collections ofsource_spctobjects. -
filter_mspct(): Specialization for collections offilter_spctobjects. -
reflector_mspct(): Specialization for collections ofreflector_spctobjects. -
object_mspct(): Specialization for collections ofobject_spctobjects. -
solute_mspct(): Specialization for collections ofsolute_spctobjects. -
response_mspct(): Specialization for collections ofresponse_spctobjects. -
chroma_mspct(): Specialization for collections ofchroma_spctobjects.
Note
Setting class = source_spct or class = source_mspct makes no difference
Examples
filter_mspct(list(polyester.spct, yellow_gel.spct))