Learn R Programming

cape (version 2.0.2)

get.marker.num: Get marker numbers from marker names

Description

This function returns the marker number of each marker specified by name

Usage

get.marker.num(data.obj, markers)

Arguments

data.obj
The object in which all results are stored. See read.population.
markers
A vector of marker numbers or names for which names are desired. If the vector contains marker numbers, the marker numbers will be returned unchanged.

Value

Returns a numeric vector of specifying the number of each specified marker. Markers can either be named with a character string or a number in the genotype matrix. This function allows conversion between them.

See Also

get.marker.chr get.marker.idx get.marker.location get.marker.name