Learn R Programming

pedtools (version 1.1.0)

nMarkers: The number of markers attached to a pedigree

Description

The number of markers attached to a pedigree

Usage

nMarkers(x)

hasMarkers(x)

Arguments

x

A ped object or a list of such (see Value).

Value

The function nMarkers returns the number of marker objects attached to x. If x is a list of pedigrees, an error is raised unless all of them have the same number of markers.

The function hasMarkers returns TRUE if nMarkers(x) > 0.