Learn R Programming

photobiology (version 0.10.6)

select_spct_attributes: Merge user supplied attribute names with default ones

Description

Allow users to add and subract from default attributes in addition to providing a given set of attributes.

Usage

select_spct_attributes(attributes, attributes.default = spct_attributes())

spct_attributes(.class = "all", attributes = "*")

Arguments

attributes, attributes.default

character vector or a list of character vectors.

.class

character Name of spectral class.

Value

A character vector of attribute names.

Details

Vectors of character strings passed as argument to attributes are parsed so that if the first member string is "+", the remaining members are added to those in attributes.default; if it is "-" the remaining members are removed from in attributes.default; and if it is "=" the remaining members replace those in in attributes.default. If the first member is none of these three strings, the behaviour is the same as when the first string is "=". If attributes is NULL all the attributes in attributes.default are used and if it is "" no attribute names are returned, "" has precedence over other member values. The order of the names of annotations has no meaning: the vector is interpreted as a set except for the three possible "operators" at position 1.

See Also

get_attributes

Other measurement metadata functions: add_attr2tb(), getFilterProperties(), getHowMeasured(), getInstrDesc(), getInstrSettings(), getWhatMeasured(), getWhenMeasured(), getWhereMeasured(), get_attributes(), isValidInstrDesc(), isValidInstrSettings(), setFilterProperties(), setHowMeasured(), setInstrDesc(), setInstrSettings(), setWhatMeasured(), setWhenMeasured(), setWhereMeasured(), spct_attr2tb(), spct_metadata(), trimInstrDesc(), trimInstrSettings()