Learn R Programming

photobiology (version 0.9.6)

as.generic_mspct: Collection-of-spectra copy-constructor

Description

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

Usage

as.generic_mspct(x, force.spct.class = FALSE)

as.raw_mspct(x)

as.cps_mspct(x)

as.source_mspct(x, time.unit = c("second", "day", "exposure"),
  bswf.used = c("none", "unknown"), strict.range = FALSE)

as.response_mspct(x, time.unit = "second")

as.filter_mspct(x, Tfr.type = c("total", "internal"), strict.range = TRUE)

as.reflector_mspct(x, Rfr.type = c("total", "specular"),
  strict.range = TRUE)

as.object_mspct(x, Tfr.type = c("total", "internal"), Rfr.type = c("total",
  "specular"), strict.range = TRUE)

as.chroma_mspct(x)

Arguments

x
a list of spectral objects or a list of objects such as data frames that can be converted into spectral objects.
force.spct.class
logical indicating whether to change the class of members to generic_spct or retain the existing class.
time.unit
character A string, "second", "day" or "exposure"
bswf.used
character
strict.range
logical Flag indicating whether off-range values result in an error instead of a warning
Tfr.type
a character string, either "total" or "internal"
Rfr.type
a character string, either "total" or "specular"

Value

  • These functions return a copy of x converted into a given class of spectral collection object, if x is a valid argument to the corresponding set function.

See Also

Other creation of spectral objects functions: as.generic_spct, source_spct