Spectral-object copy constructor

Share:

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
as.generic_spct(x, ...)

as.raw_spct(x, ...)

as.cps_spct(x, ...)

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

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

as.filter_spct(x, Tfr.type = c("total", "internal"),
  strict.range = getOption("photobiology.strict.range", default = FALSE), ...)

as.reflector_spct(x, Rfr.type = c("total", "specular"),
  strict.range = getOption("photobiology.strict.range", default = FALSE), ...)

as.object_spct(x, Tfr.type = c("total", "internal"), Rfr.type = c("total",
  "specular"), strict.range = getOption("photobiology.strict.range", default =
  FALSE), ...)

as.chroma_spct(x, ...)

Arguments

x

an R object

...

other arguments passed to "set" functions

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 object, if x is a valid argument to the correcponding set function.

See Also

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.