phylo4d-hasData: Tests for presence of data associated with trees stored as
phylo4d objects
Description
Methods that test for the presence of data associated with trees
stored as phylo4d objects.
Usage
## S3 method for class 'phylo4d':
hasNodeData(x)
## S3 method for class 'phylo4d':
hasTipData(x)
Arguments
x
a phylo4d object
Value
logicalreturn TRUE or FALSE depending
whether data are associated with the tree (i.e., the slots
tip.data or node.data are not empty)
Details
The outcome of the test is based on row names of the data frame stored
in data. If there are no rows having row names from the set
nodeId(x, "tip"), then hasTipData returns FALSE.
Likewise, if there are no rows having row names from the set
nodeId(x, "internal"), then hasNodeData returns FALSE.