tdata(x, ...)
"tdata"(x, type = c("all", "tip", "internal"), label.type = c("row.names", "column"), empty.columns = TRUE)
tdata(x, ...) <- value
"tdata"(x, type = c("all", "tip", "internal"), merge.data = TRUE, clear.all = FALSE, ...) <- value
tipData(x, ...)
"tipData"(x, ...)
tipData(x, ...) <- value
"tipData"(x, ...) <- value
nodeData(x, ...)
"nodeData"(x, ...)
nodeData(x, ...) <- value
"nodeData"(x, ...) <- value
phylo4d
objectall
(default) for data associated with both tip and internal nodes,
tip
for data associated with tips only,
internal
for data associated with internal nodes only.row.names
returns them as row names of the data frame,
column
returns them in the first column of the data frame.
This options is useful in the case of missing (NA
) or non-unique
labels.NA
be returned?type
tipData
and nodeData
accessors,
further arguments to be used by tdata
. For the replacement
forms, further arguments to be used to control matching between
tree and data (see Details section of phylo4d-methods
).tdata
returns a data frame
signature(object="phylo4d")
: retrieve or update data
associated with a tree in a phylo4d
objectphylo4d-methods
, phylo4d
data(geospiza)
tdata(geospiza)
tipData(geospiza) <- 1:nTips(geospiza)
tdata(geospiza)
Run the code above in your browser using DataCamp Workspace