R: Determine the number of chromosomes

nchr {qtl} | R Documentation

## Determine the number of chromosomes

### Description

Determine the number of chromosomes in a cross or map object.

### Usage

    nchr(object)

### Arguments

`object` | An object of class `cross` (see `read.cross` for details) or `map` (see `sim.map` for details).

### Value

The number of chromosomes in the input.

### Author(s)

Karl W Broman, kbroman@biostat.wisc.edu

### See Also

`read.cross`, `plot.cross`, `summary.cross`, `nind`, `totmar`, `nmar`, `nphe`

### Examples

    data(fake.f2)
    nchr(fake.f2)
    map <- pull.map(fake.f2)
    nchr(map)

[Package qtl version 1.41-6 Index]