Functions for manipulating markers attached to a ped object.
selectMarkers(x, markers = NULL, chroms = NULL, fromPos = NULL,
toPos = NULL)getMarkers(x, markers = NULL, chroms = NULL, fromPos = NULL,
toPos = NULL)
removeMarkers(x, markers = NULL, chroms = NULL, fromPos = NULL,
toPos = NULL)
whichMarkers(x, markers = NULL, chroms = NULL, fromPos = NULL,
toPos = NULL)
A ped object
Either a character vector (with marker names), a numeric vector (with marker indices), or NULL
A vector of chromosome names, or NULL
A single number or NULL
A single number or NULL
The return values of these functions are:
selectMarkers() : a ped object where only the indicated markers are kept
removeMarkers() : a ped object where the indicated markers are removed
getMarkers() : a list of marker objects
whichMarkers() : an integer vector with indices of the indicated markers