create_population: Create a population

Description Usage Arguments Value Examples

Description

Create a population

Usage

1
2
3
4
5
6
7
create_population(size, ndroplets, prop_yield = 0.5)

popsize(population)

num_droplets(population)

is_empty(population)

Arguments

size

The total carrying capacity for the population

ndroplets

The number of droplets created when emulsifying

population

An emulsifyr population

pyield

The initial proportion of Yield types

Value

create_population returns a tibble representing a population

popsize returns the current number of organisms in the given population

num_droplets returns the number of droplets into which the population can be emulsified

is_empty returns whether the population contains no individuals (TRUE) or not (FALSE).

Examples

1
2
3
## Not run: 
p1 <- create_population(size = 1e6, ndroplets = 1e4, prop_yield = 0.5)
## End(Not run)

briandconnelly/emulsifyr documentation built on May 13, 2019, 5:13 a.m.