powered by
ncol returns the number of columns present in a matrix.
ncol
# S4 method for Dna ncol(x)
an integer of length one.
an object of class Dna.
Dna
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)
Run the code above in your browser using DataLab