Description Usage Arguments Value Author(s) Source See Also Examples
drop.tip method
drop.tip method
1 2 3 4 5 6 |
object |
A treedata or phylo object |
tip |
a vector of mode numeric or character specifying the tips to delete |
... |
additional parameters |
updated object
Casey Dunn http://dunnlab.org and Guangchuang Yu https://guangchuangyu.github.io
drop.tip for phylo object is a wrapper method of ape::drop.tip from the ape package. The documentation you should read for the drop.tip function can be found here: drop.tip
drop.tip
1 2 3 | nhxfile <- system.file("extdata/NHX", "ADH.nhx", package="treeio")
nhx <- read.nhx(nhxfile)
drop.tip(nhx, c("ADH2", "ADH1"))
|
'treedata' S4 object that stored information of
'/usr/local/lib/R/site-library/treeio/extdata/NHX/ADH.nhx'.
...@ tree:
Phylogenetic tree with 4 tips and 3 internal nodes.
Tip labels:
[1] "ADHY" "ADHX" "ADH4" "ADH3"
Node labels:
[1] 9 10 12
Rooted; includes branch lengths.
with the following features available:
'S', 'D', 'B'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.