reindex: Generic method for resetting indexing in an S4 object

Description Usage Arguments Value Examples

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

1
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

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

CoreGx documentation built on Nov. 8, 2020, 4:50 p.m.