ARG.remove {ARG} | R Documentation |
Functions to remove and manipulate ARG data.
ARG.remove(graph) prune(graph,keep)
graph |
An object that inherits from the ARG class |
keep |
A vector that gives the indices of the end points to keep. |
~Describe the value returned If it is a LIST, use
comp1 |
Description of 'comp1' |
comp2 |
Description of 'comp2' |
...
Ian Wilson
http://www.mas.ncl.ac.uk/~nijw
## generate 9 trees a <- replicate(9,simARG(100,1000,0.01),simplify=FALSE) b <- lapply(a,function(x) prune(x,sample(100,10))) par(mfrow=c(3,3),mar=rep(1,4)) lapply(b,function(x) plot(tree(x,1)))