Produce a new smaller XYZ object, containing a subset of atoms.
# S3 method for xyz trim(xyz, row.inds = NULL, col.inds = NULL, ...)
a numeric vector specifying which rows of the xyz matrix to return.
a numeric vector specifying which columns of the xyz matrix to return.
additional arguments passed to and from functions.
This function provides basic functionality for subsetting a matrix of class ‘xyz’ while also maintaining the class attribute.
Returns an object of class
xyz with the Cartesian coordinates
stored in a matrix object with dimensions M x 3N, where N is the
number of atoms, and M number of frames.
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.