Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.reflector_spct

Coerce to a spectrum


Description

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

Usage

as.reflector_spct(x, ...)

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

Arguments

x

an R object

...

other arguments passed to "set" functions

Rfr.type

a character string, either "total" or "specular"

strict.range

logical Flag indicating whether off-range values result in an error instead of a warning

Value

A copy of x converted into a reflector_spct object.

Methods (by class)

  • default:

See Also


photobiology

Photobiological Calculations

v0.10.10
GPL (>= 2)
Authors
Pedro J. Aphalo [aut, cre] (<https://orcid.org/0000-0003-3385-972X>), Titta K. Kotilainen [ctb] (<https://orcid.org/0000-0002-2822-9734>), Glenn Davis [ctb], Agnese Fazio [ctb]
Initial release
2022-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.