Learn R Programming

cape (version 2.0.2)

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

Description

This function returns the name of markers specified by number

Usage

get.marker.name(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 names, the marker names will be returned unchanged.

Value

Returns a vector of character strings specifying the name of each marker designated by a number or name in the input vector. 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.num