Description Usage Arguments Value
View source: R/calc_crop_cost.R
This function will find the anomaly in rainfall, and then calculate the estimate loss or gain in crop harvest and the corresponding value of that crop
1 | calc_crop_cost(crop_rain, mean_rain, risk_parameter, total_harvest, price)
|
crop_rain |
data set with rain by year (inches) |
mean_rain |
the California average rainfall amount (inches) |
risk_parameter |
a paramter that esimates the perentage of crop loss based on deviation from average temperature |
total_harvest |
total expected harvest (lbs) |
price |
price per poound of harvest |
Estimated crop loss or gain, and the monetary value of that loss or gain
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.