commnity_generate: Generate a community sampled from regional pool

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
community_generate(pool = regional_pool, I = 0.01, threshold = 1e-05,
  seed = 1)

Arguments

I

inocula drop size

threshold

minimal detectable size or extinction threshold of microbes

seed

seed for sampling

Value

a named vector

See Also

https://github.com/Chang-Yu-Chang/micro.crm for package page, community_coalesce

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# 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)

## Not run: 
community_generate("bad")

## End(Not run)

Chang-Yu-Chang/MigrationCommunity documentation built on Aug. 13, 2019, 9:41 p.m.