create_lookup: create an example lookup table that could be used by a game...

Description Usage Arguments Value Examples

Description

this is a prototype to explore what a lookup table might look like

Usage

1
2
3
4
5
create_lookup(input_values = list(use_pyr = c(0, 1), use_ddt = c(0, 1),
  use_ops = c(0, 1), use_car = c(0, 1), pop_vector = seq(0.1, 1, 0.1),
  resist_pyr = seq(0.1, 1, 0.1)), rate_growth = 0.4, insecticide_kill = 0.4,
  resistance_modifier = 1, carry_cap = 1, resist_incr = 0.4,
  resist_decr = 0.4, write_csv = "demoLookupTable.csv")

Arguments

input_values

a list of inputs and values

rate_growth

vector popn growth rate

insecticide_kill

insecticide kill rate

resistance_modifier

resistance modifier

carry_cap

carrying capacity

resist_incr

increase in resistance when correct insecticide present

resist_decr

decrease in resistance when correct insecticide absent

write_csv

a filename or NULL for no csv output

Value

a lookup table of input values and population and resistance outputs

Examples

1
create_lookup(write_csv=NULL)

AndySouth/resistanceGame documentation built on May 5, 2019, 6:01 a.m.