simtraits: Simulate traits on each tree.

Description Usage Arguments Details Value Examples

View source: R/simtraits.r

Description

Simulate traits on each tree.

Usage

1
simtraits(trees, numtraits, method)

Arguments

trees

List of phylogenetic trees in "phylo" format.

numtraits

Number of traits to create.

method

Method to simulate traits on a phylogeny, one of fastBM, etc. Only one method allowed.

Details

You can specify how many traits you would like to create. One trait output will always be abundance ('abd').

Value

List of lists, each of which is a nanmed trait for each species in the phylogeny.

Examples

1
2
trees <- replicate(10, rcoal(10), simplify=F) # simulate trees
simtraits(trees = trees, numtraits = 2, method = "fastBM")

sckott/sacbox documentation built on May 26, 2017, 3:47 a.m.