reindex: Generic method for resetting indexing in an S4 object

reindexR Documentation

Generic method for resetting indexing in an S4 object

Description

This method allows integer indexes used to maintain referential integrity internal to an S4 object to be reset. This is useful particularly after subsetting an object, as certain indexes may no longer be present in the object data. Reindexing removes gaps integer indexes and ensures that the smallest contiguous integer values are used in an objects indexes.

Usage

reindex(object, ...)

Arguments

object

S4 An object to redo indexing for

...

pairlist Allow definition of new parameters to this generic.

Value

Depends on the implemented method

Examples

print("Generics shouldn't need examples?")


bhklab/CoreGx documentation built on March 14, 2024, 3:04 a.m.