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

setTfrType

Set the "Tfr.type" attribute


Description

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

Usage

setTfrType(x, Tfr.type = c("total", "internal"))

Arguments

x

a filter_spct or an object_spct object

Tfr.type

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

Value

x

Note

This function alters x itself by reference and in addition returns x invisibly. If x is not a filter_spct or an object_spct object, x is not modified The behaviour of this function is 'unusual' in that the default for parameter Tfr.type is used only if x does not already have this attribute set.

See Also

Other Tfr attribute functions: getTfrType()

Examples

my.spct <- polyester.spct
getTfrType(my.spct)
setTfrType(my.spct, "internal")
getTfrType(my.spct)

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.