Description Usage Arguments Value Author(s) See Also Examples
Get a table with the frequencies of the states of a collection of Site objects aggregated by a Sequence object.
1 2 | ## S3 method for class 'Sequence'
getSymbolFreqs(this, index, ...)
|
this |
A Sequence object. |
index |
An integer vector specifying a set of positions. It is set to 1:seq$length if omitted. |
... |
Not used. |
A table.
Botond Sipos, Gregory Jordan
For more information see Sequence
.
1 2 3 4 5 6 7 8 9 | # create a nucleotide sequence
s<-NucleotideSequence(length=30,processes=list(list(JC69())))
# sample states
sampleStates(s)
# get state frequencies from ranges 1:10 and 20:30
getSymbolFreqs(s,c(1:10,20:30))
# get symbol frequencies for the full sequence
getSymbolFreqs(s)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.