commnity_generate: Generate a community sampled from regional pool

Description Arguments Value Examples

Description

The commnity is sampled from regional species pool. The output is modified so it fits the argument format for CR_model().

Arguments

I

inocula drop size

threshold

minimal detectable size or extinction threshold of microbes

seed

seed for sampling

Value

a named vector

Examples

1
2
3
4
5
6
7
8
9
# Load packages and example parameters
library(tidyverse)
data(example_parameter)

# Build regional species pool 
pool_build(save_data = FALSE)

# Generate a community sample from pool
community_generate(pool = regional_pool, I = 1e-2, threshold = 1e-4)

Chang-Yu-Chang/MigrationCommunity documentation built on Sept. 8, 2018, 8:30 p.m.