ncol-methods: Returns the length of the longest DNA sequence

Description Usage Arguments Value Methods See Also Examples

Description

ncol returns the number of columns present in a matrix.

Usage

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

Arguments

x

an object of class Dna.

Value

an integer of length one.

Methods

signature(x = "Dna")

ncol returns the number of columns present in the sequence matrix (length of the longest DNA sequence).

See Also

length-methods

Examples

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

## Giving the length of the longest sequence.
ncol(x) 
# gives the same result
length(x) 

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