sort_input | R Documentation |
Sort custom input
sort_input(BM, fw)
BM |
numeric vector, body mass of species. |
fw |
adjacency matrix of the food web. |
Body masses and food web matrix should be arranged with the first elements/columns being for basal species. This is a requirement for the Cpp class and must be enforced before initializing the Rcpp_Schneider and Rcpp_Delmas objects.
A list with sorted body masses (body.mass) and food web matrix (food.web).
bm <- runif(10, 10, 50)
fw <- matrix(as.numeric(runif(100) > .9), 10, 10)
sort_input(bm, fw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.