Learn R Programming

pmc (version 0.0-8)

format_data: format data in ape format into ouch format

Description

format data in ape format into ouch format

Usage

format_data(tree, traits, species_names = NULL,
    regimes = NULL)

Arguments

tree
a phylogenetic tree of class "phylo", ape format, or a tree in ouch format with the data also in ouch format
traits
a numeric with trait values, or a matrix or data frame of traits, rownames matching species or handed in
species_names
in the order of entries in traits, if not given in rownames.
regimes
the column in traits containing regime labels

Value

  • the ouch-formatted tree, traits, and regimes

Details

Should become an internal function to handle data conversion to ape-type

See Also

convert to toggle between formats, including regime paintings