nrow-methods: Returns the number of DNA sequences

nrow-methodsR 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 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

data("dna.obj")
x <-dna.obj

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


haplotypes documentation built on July 26, 2023, 5:22 p.m.