
Last chance! 50% off unlimited learning
Sale ends in
Set the states of a collection of Site objects aggregated by a Sequence object to undefined (NA).
# S3 method for Sequence
clearStates(this, index, ...)
A Sequence object.
An integer vector specifying a set of positions. It is set to 1:seq$length if omitted.
Not used.
The Sequence object (invisible).
For more information see Sequence
.
# NOT RUN {
# 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
# }
Run the code above in your browser using DataLab