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 or NULL as we assume that check_idfactor_arg has already been called on idfactor to check its sanity.


[Package ggspectra version 0.3.15 Index]