nrow-methods {haplotypes} | R Documentation |
Returns the number of DNA sequences
Description
nrow
returns the number of rows present in a matrix.
Usage
## S4 method for signature 'Dna'
nrow(x)
Arguments
x |
an object of class |
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
data("dna.obj")
x <-dna.obj
## Giving the number of sequences.
nrow(x)
[Package haplotypes version 1.1.3.1 Index]