trimInstrSettings: Trim the "instr.settings" attribute

Description Usage Arguments Value Note See Also

View source: R/spct.metadata.r

Description

Function to trim the "instr.settings" attribute of an existing generic_spct object, by discarding some fields.

Usage

1
trimInstrSettings(x, fields = "*")

Arguments

x

a generic_spct object

fields

a character vector with the names of the fields to keep, or if first member is '"-"', the names of fields to delete; "*" as first member of the vector makes the function a no-op, leaving the spectrum object unaltered.

Value

x

Note

This function alters x itself by reference and in addition returns x invisibly. If x is not a generic_spct object, x is not modified.

See Also

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


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