Allow users to add and subract from default attributes in addition to providing a given set of attributes.
select_spct_attributes(attributes, attributes.default = spct_attributes())spct_attributes(.class = "all", attributes = "*")
character vector or a list of character vectors.
character Name of spectral class.
A character vector of attribute names.
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.
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()