sim_traits_nets2: Simulate networks, with interactions propoprtional to trait...

Description Usage Arguments Value Examples

View source: R/sim_traits_nets2.r

Description

Simulate networks, with interactions propoprtional to trait matching

Usage

1
2
3
  sim_traits_nets2(listoftraitvecs,
    method = c("ratio", "complementarity", "barrier"),
    value)

Arguments

listoftraitvecs
method

The model to be used to construct interaction matrices. One of "ratio","complementarity","barrier".

value

Value at which to determine if species interact or not - this value depends on the model you are using.

Value

A data.frame of network structure metrics for balanced and unbalanced trees.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
trees <- rmtree(N=20, n=5)
trees2 <- rmtree(N=20, n=10)
traitvecs <- lapply(trees, fastBM, bounds=c(0,Inf))
traitvecs2 <- lapply(trees2, fastBM, bounds=c(0,Inf))
alltraits <- list(traitvecs, traitvecs2)
sim_traits_nets2(listoftraitvecs=alltraits, method="c", value=1)

## End(Not run)

sckott/treeshape documentation built on May 26, 2017, 3:50 a.m.