Data format

Eric W. Goolsby edited this page May 11, 2016 · 2 revisions

The phylogenetic tree should be a phylogenetic tree of class "phylo". Format the data variable as a data frame with 2 or more columns:

column 1 (labeled "species") with species names (must match tip names in phylogenetic tree)
column 2 (labeled with the name of trait 1 -- e.g., "body_mass") filled with trait data
column 3 (labeled with the name of trait 2 -- e.g., "range_size") filled with trait data
...
column m+1 (labeled with the name of trait m -- e.g., "fecundity") filled with trait data

Each row corresponds to an individual if pheno_correlated=TRUE. Otherwise, trait values are assumed to be independent.

Alternatively, simulate data (and tree) with the simtraits function:
sim_data <- simtraits(ntaxa = 15,ntraits = 4,nreps = 3,nmissing = 15)

Proceed to Example 1: Getting Started

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.