Description Usage Arguments Value
View source: R/trap_functions.R
Finds any possible adult mosquitoes that are trapped by a particular trap for a particular timestep. If mosquitoes are within distance phi of a trap, there is a 0.5 probability that a mosquito is trapped. Only adults can be trapped.
1 | find_trapped(traplat, traplong, phi, mozzie.dt, prob)
|
traplat |
Lat of a particular trap. |
traplong |
Long of a particular trap. |
phi |
Distance that a mosquito is susceptible to a trap. |
mozzie.dt |
Data.table of adult mosquitoes. |
prob |
Probability of being trapped when within trap radius. |
Vector of mosquito IDs to be trapped. Expect to be length 0 for the first few days. If length 0 return -1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.