setTfrType: Set the "Tfr.type" attribute

Description Usage Arguments Value Note See Also Examples

View source: R/spct.classes.r

Description

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

Usage

1
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

1
2
3
4
my.spct <- polyester.spct
getTfrType(my.spct)
setTfrType(my.spct, "internal")
getTfrType(my.spct)

photobiology documentation built on Aug. 28, 2020, 1:11 a.m.