simtraits: Simulate traits on each tree.

Description Usage Arguments Details Value Examples

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
3
4
5
## Not run: 
trees <- replicate(10, rcoal(10), simplify=F) # simulate trees
simtraits(trees = trees, numtraits = 2, method = "fastBM")

## End(Not run)

sckott/sacbox documentation built on Sept. 3, 2020, 7:22 p.m.