five

Supplement 2. Community assembly simulation code for use in the R programming language.

收藏
DataCite Commons2020-09-04 更新2024-07-25 收录
下载链接:
https://wiley.figshare.com/articles/dataset/Supplement_2_Community_assembly_simulation_code_for_use_in_the_R_programming_language_/3510423
下载链接
链接失效反馈
官方服务:
资源简介:
File List community_assembly_simulations.txt Description A set of functions in the R programming language for simulating community assembly randomly (with or without weighting species by abundance), by trait-based competition, or by trait-based habitat filtering. The linked text file contains a series of R functions, a brief demonstration of the functions, commentary on the algorithms, and references. There are three key functions, described below, and a series of smaller functions that support them. More detailed descriptions can be found as in the file itself. random_assembly(pool, final_richness, abund=NULL)<br> Randomly samples final_richness number of species from a vector of species names given in pool. Sampling is occurence weighted if a vector of abundances is specified in the abund argument- default is no abundance weighting. compete_until(nfinal, community)<br> Takes a data frame community with species names in column 1 and traits in subsequent columns and runs a competition algorithm to cull the community unitl nfinal taxa remain. At each step, the algorithm identifies the most similar pair of species based on trait similarity and randomly removes one. Ties are broken randomly. filter_until(nfinal, community, optima) Takes a data frame community with species names in column 1 and traits in subsequent columns and runs a habitat filtering algorithm to cull the community unitl nfinal taxa remain. At each step, the algorithm identifies the species that is farthest from the trait optima and removes it. Ties are broken randomly. The community can have from 1 to many traits, but the optima vector must have the same number of elements as the number of traits in the community dataframe.
提供机构:
Wiley
创建时间:
2016-08-03
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作