
Last chance! 50% off unlimited learning
Sale ends in
Get the ancestral object of a Sequence object.
# S3 method for Sequence
getAncestral(this, ...)
A Sequence object.
Not used.
A Sequence object or a Process object.
For more information see Sequence
.
# NOT RUN {
# create a sequence object
s<-Sequence(length=4)
# get ancestral object
getAncestral(s) # newly created sequences have the "Root insertion process" as ancestral
# clone sequence
cs<-clone(s)
# get ancestral object id via virtual field
cs$ancestral$id
# }
Run the code above in your browser using DataLab