Source Code for simulations in the R language for statistical computing from Defaunation effects on plant recruitment depend on size matching and size trade-offs in seed-dispersal networks

R code with the functions used to create our simulated seed dispersal networks, to estimate the three dimensions of seedling recuritment and to generate the defaunation scenarios