Description Usage Arguments Value Author(s) See Also Examples
Set the states of a collection of Site objects aggregated by a Sequence object to undefined (NA).
1 2 | ## S3 method for class 'Sequence'
clearStates(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. |
The Sequence object (invisible).
Botond Sipos, Gregory Jordan
For more information see Sequence
.
1 2 3 4 5 6 7 8 9 10 | # create a nucleotide sequence
s<-NucleotideSequence(string="ATGC")
s
# set states to NA in the range 2:3
clearStates(s,2:3)
s
# set all states to NA
clearStates(s)
s
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.