Description Usage Arguments Value Examples
Create a population
1 2 3 4 5 6 7 | create_population(size, ndroplets, prop_yield = 0.5)
popsize(population)
num_droplets(population)
is_empty(population)
|
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 |
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
).
1 2 3 | ## Not run:
p1 <- create_population(size = 1e6, ndroplets = 1e4, prop_yield = 0.5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.