Description Usage Arguments Details Value Author(s) See Also Examples
addData
adds data to a phylo4
(converting it in a
phylo4d
object) or to a phylo4d
object
1 2 3 4 5 6 7 8 9 | addData(x, ...)
## S4 method for signature 'phylo4d'
addData(x, tip.data = NULL, node.data = NULL,
all.data = NULL, merge.data = TRUE, pos = c("after", "before"), ...)
## S4 method for signature 'phylo4'
addData(x, tip.data = NULL, node.data = NULL,
all.data = NULL, merge.data = TRUE, pos = c("after", "before"), ...)
|
x |
a phylo4 or a phylo4d object |
tip.data |
a data frame (or object to be coerced to one) containing only tip data |
node.data |
a data frame (or object to be coerced to one) containing only node data |
all.data |
a data frame (or object to be coerced to one) containing both tip and node data |
merge.data |
if both |
pos |
should the new data provided be bound |
... |
additional arguments to be passed to formatData |
Rules for matching data to tree nodes are identical to those used by the
phylo4d
constructor.
If any column names in the original data are the same as columns in the new data, ".old" is appended to the former column names and ".new" is appended to the new column names.
The option pos
is ignored (silently) if x
is a phylo4
object. It is provided for compatibility reasons.
addData
returns a phylo4d
object.
Francois Michonneau
tdata
for extracting or updating data and
phylo4d
constructor.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.