rename_idfactor {ggspectra}R Documentation

Update idfactor name in object

Description

Conditionally call setIdFactor.

Usage

rename_idfactor(object, idfactor)

Arguments

object

generic_spct object.

idfactor

character The name of the factor identifying spectra when stored in long form.

Note

There is no check for NA_character_ as we assume that check_idfactor_arg has already been called on idfactor to check its sanity. NULL and non-character values including NA are ignored silently!


[Package ggspectra version 0.3.16 Index]