Mercurial > repos > greg > insect_phenology_model
comparison insect_phenology_model.R @ 66:662a95a28359 draft default tip
Uploaded
author | greg |
---|---|
date | Mon, 25 Nov 2019 14:12:07 -0500 |
parents | 4d86920b1a6e |
children |
comparison
equal
deleted
inserted
replaced
65:4d86920b1a6e | 66:662a95a28359 |
---|---|
284 mortality.probability[mortality.probability>100] = 100; | 284 mortality.probability[mortality.probability>100] = 100; |
285 # If mortality <0, make equal to 0. | 285 # If mortality <0, make equal to 0. |
286 mortality.probability[mortality.probability<0] = 0; | 286 mortality.probability[mortality.probability<0] = 0; |
287 } | 287 } |
288 # Make mortality adjustments based on adj parameter. | 288 # Make mortality adjustments based on adj parameter. |
289 mortality.probability = (100 - mortality.probability) * (1+adj) + mortality.probability; | 289 mortality.probability = (100 - mortality.probability) * adj + mortality.probability; |
290 # if mortality > 100, make it equal to 100. | 290 # if mortality > 100, make it equal to 100. |
291 mortality.probability[mortality.probability>100] = 100; | 291 mortality.probability[mortality.probability>100] = 100; |
292 # If mortality <0, make equal to 0. | 292 # If mortality <0, make equal to 0. |
293 mortality.probability[mortality.probability<0] = 0; | 293 mortality.probability[mortality.probability<0] = 0; |
294 # Change percent to proportion. | 294 # Change percent to proportion. |