Return an object of the same class as x with updated indexes.
Arguments
...
further arguments passed to or from other methods.
x
an R object.
eleid
a single element logical vector indicating if elements IDs have to reindexed.
resid
a single element logical vector indicating if residues IDs have to reindexed.
Details
reindex is a generic function to reinitialize the indexing of an object or its components.
The methods for objects of class ‘atoms’ reinitialize the residue and element IDs starting
from 1 and avoiding gaps in the indexes. For objects of class ‘pdb’ their atoms and
conect components are reindexed consistently.