length-methods | R Documentation |
length
in the package haplotypesMethods for function length
.
## S4 method for signature 'Dna'
length(x)
## S4 method for signature 'Haplotype'
length(x)
## S4 method for signature 'Parsimnet'
length(x)
x |
an object of class |
returns a non-negative integer vector.
signature(x = "Dna")
returns the longest sequence length.
signature(x = "Haplotype")
returns the number of haplotypes.
signature(x = "Parsimnet")
returns the length of network(s).
ncol-methods
data("dna.obj")
x<-dna.obj
## Longest sequence length
length(x)
## Total number of haplotypes
h<-haplotype(x)
length(h)
## Length of network(s)
p<-parsimnet(x,prob=.95)
# length of the network
length(p)
p<-parsimnet(x,prob=.99)
# length of the networks
length(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.