Usage
formatData(phy, dt, type=c("tip", "internal", "all"),
match.data=TRUE, rownamesAsLabels=FALSE,
label.type=c("rownames", "column"),
label.column=1, missing.data=c("fail", "warn", "OK"),
extra.data=c("warn", "OK", "fail"), keep.all=TRUE)
Arguments
dt
a data frame, matrix, vector, or factor
type
type of data to attach
match.data
(logical) should the rownames of the data frame
be used to be matched against tip and internal node identifiers? See
details.
rownamesAsLabels
(logical), should the row names of the data
provided be matched only to labels (TRUE), or should any number-like
row names be matched to node numbers (FALSE and default)
label.type
character, rownames
or column
: should
the labels be taken from the row names of dt
or from
the label.column
column of dt
?
label.column
if label.type=="column"
, column specifier
(number or name) of the column containing tip labels
missing.data
action to take if there are missing data or if
there are data labels that don't match
extra.data
action to take if there are extra data or if there
are labels that don't match
keep.all
(logical), should the returned data have rows for all
nodes (with NA values for internal rows when type='tip', and vice
versa) (TRUE and default) or only rows corresponding to the type
argument