rename_idfactor: Update idfactor name in object

View source: R/utils-internal.R

rename_idfactorR 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.


ggspectra documentation built on April 4, 2025, 2:19 a.m.