ARG.remove {ARG}R Documentation

Functions to manipulate, extract and remove ARG data.

Description

Functions to remove and manipulate ARG data.

Usage

ARG.remove(graph)
prune(graph,keep)

Arguments

graph An object that inherits from the ARG class
keep A vector that gives the indices of the end points to keep.

Value

~Describe the value returned If it is a LIST, use

comp1 Description of 'comp1'
comp2 Description of 'comp2'

...

Author(s)

Ian Wilson

References

http://www.mas.ncl.ac.uk/~nijw

See Also

treelength,simARG

Examples

## 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)))

[Package ARG version 0.1 Index]