Learn R Programming

haplotypes (version 1.1.3.1)

nrow-methods: Returns the number of DNA sequences

Description

nrow returns the number of rows present in a matrix.

Usage

# S4 method for Dna
nrow(x)

Value

an integer of length one.

Arguments

x

an object of class Dna.

Methods

signature(x = "Dna")

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

Examples

Run this code
data("dna.obj")
x <-dna.obj

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

Run the code above in your browser using DataLab