photobiology (version 0.9.30)

setRfrType: Set the "Rfr.type" attribute

Description

Function to set by reference the "Rfr.type" attribute of an existing reflector_spct or object_spct object.

Usage

setRfrType(x, Rfr.type = c("total", "specular"))

Arguments

x

a reflector_spct or an object_spct object

Rfr.type

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

Value

x

See Also

Other Rfr attribute functions: getRfrType()

Examples

Run this code
# NOT RUN {
my.spct <- reflector_spct(w.length = 400:409, Rfr = 0.1)
getRfrType(my.spct)
setRfrType(my.spct, "specular")
getRfrType(my.spct)

# }

Run the code above in your browser using DataCamp Workspace