setAfrType {photobiology}R Documentation

Set the "Afr.type" attribute

Description

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

Usage

setAfrType(x, Afr.type = c("total", "internal"))

Arguments

x

a filter_spct or an object_spct object

Afr.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 Afr.type is used only if x does not already have this attribute set.

See Also

Other Afr attribute functions: getAfrType

Examples

my.spct <- polyester.spct
getAfrType(my.spct)
setAfrType(my.spct, "internal")
getAfrType(my.spct)


[Package photobiology version 0.9.21 Index]