Learn R Programming

mpMap2 (version 1.0.4)

nMarkers: Number of genotyped markers

Return the number of genotyped markers in an object.

If an mpcross object contains multiple experiments, all experiments are required to have the same markers. So only one number is returned, in all cases.

Description

Number of genotyped markers

Return the number of genotyped markers in an object.

If an mpcross object contains multiple experiments, all experiments are required to have the same markers. So only one number is returned, in all cases.

Usage

nMarkers(object)

# S4 method for mpcross nMarkers(object)

# S4 method for geneticData nMarkers(object)

Arguments

object

The mpcross object from which to extract the marker names

Value

The number of markers in an object of class mpcross.