ncol-methods | R Documentation |
ncol
returns the number of columns present in a matrix.
## S4 method for signature 'Dna'
ncol(x)
x |
an object of class |
an integer of length one.
signature(x = "Dna")
ncol
returns the number of columns present in the sequence matrix (length of the longest DNA sequence).
length-methods
data("dna.obj")
x <-dna.obj
## Giving the length of the longest sequence.
ncol(x)
# gives the same result
length(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.