nrow-methods: Returns the number of DNA sequences

Description Usage Arguments Value Methods Examples

Description

nrow returns the number of rows present in a matrix.

Usage

1
2
## S4 method for signature 'Dna'
nrow(x)

Arguments

x

an object of class Dna.

Value

an integer of length one.

Methods

signature(x = "Dna")

nrow returns the number of rows present in the sequence matrix (number of sequences).

Examples

1
2
3
4
5
data("dna.obj")
x <-dna.obj

## Giving the number of sequences.
nrow(x)

haplotypes documentation built on Feb. 28, 2020, 5:08 p.m.