Learn R Programming

photobiology (version 0.11.3)

as.calibration_mspct: Coerce to a collection-of-spectra

Description

Return a copy of an R object with its class set to a given type of spectrum.

Usage

as.calibration_mspct(x, ...)

# S3 method for default as.calibration_mspct(x, ...)

# S3 method for data.frame as.calibration_mspct(x, ...)

# S3 method for calibration_spct as.calibration_mspct(x, ...)

# S3 method for list as.calibration_mspct(x, ..., ncol = 1, byrow = FALSE)

# S3 method for matrix as.calibration_mspct( x, w.length, spct.data.var = "irrad.mult", multiplier = 1, byrow = NULL, spct.names = "spct_", ... )

Value

A copy of x converted into a calibration_mspctt object.

Arguments

x

a list of spectral objects or a list of objects such as data frames that can be converted into spectral objects.

...

passed to individual spectrum object constructor

ncol

integer Number of 'virtual' columns in data

byrow

logical If ncol > 1 how to read in the data

w.length

numeric A vector of wavelengthvalues sorted in strictly ascending order (nm).

spct.data.var

character The name of the variable that will contain the spectral data. This indicates what physical quantity is stored in the matrix and the units of expression used.

multiplier

numeric A multiplier to be applied to the values in x to do unit or scale conversion.

spct.names

character Vector of names to be assigned to collection members, either of length 1, or with length equal to the number of spectra.

Methods (by class)

  • as.calibration_mspct(default):

  • as.calibration_mspct(data.frame):

  • as.calibration_mspct(calibration_spct):

  • as.calibration_mspct(list):

  • as.calibration_mspct(matrix):

See Also

Other Coercion methods for collections of spectra: as.chroma_mspct(), as.cps_mspct(), as.filter_mspct(), as.generic_mspct(), as.object_mspct(), as.raw_mspct(), as.reflector_mspct(), as.response_mspct(), as.solute_mspct(), as.source_mspct(), split2mspct(), subset2mspct()