R code used in the manuscript Loss of generalist plant species and functional diversity decreases the robustness of a seed dispersal network Bastazini V.A.G., V.J. Debastiani, B.O. Azambuja, P.R. Guimarães Jr. & V.D. Pillar (2019). Environmental Conservation 46(1): 52-58. doi: 10.1017/S0376892918000334