length-methods {haplotypes} | R Documentation |
Methods for function length
in the package haplotypes
Description
Methods for function length
.
Usage
## S4 method for signature 'Dna'
length(x)
## S4 method for signature 'Haplotype'
length(x)
## S4 method for signature 'Parsimnet'
length(x)
Arguments
x |
Value
returns a non-negative integer vector.
Methods
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).
See Also
Examples
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)
[Package haplotypes version 1.1.3.1 Index]