knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of ecocom is to provide tools to compute plant-plant interactions and moments of trait distribution.
You can install the development version of ecocom from GitHub with:
# install.packages("devtools") devtools::install_github("alaindanet/ecocom")
This is a basic example which shows you how to solve a common problem:
library(ecocom) ## basic example code #vector of species abundance abun <- rpois(n = 10, lambda = 3) # vector of species trait trait <- rnorm(n = 10, mean = 10, sd = 3) # Compute the moments of trait distribution calc_cw_moments(trait = trait, weight = abun)
The n_int_a
and n_int_c
compute the neighbor-effect respectively with
additive and commutative symmetry according to Diaz-Sierra et al. (2016).
n_int_a(without = 0, with_nbs = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.