calc_crop_cost: calc_crop_cost

Description Usage Arguments Value

View source: R/calc_crop_cost.R

Description

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

Usage

1
calc_crop_cost(crop_rain, mean_rain, risk_parameter, total_harvest, price)

Arguments

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

Value

Estimated crop loss or gain, and the monetary value of that loss or gain


annaclairemarley/HW5262 documentation built on April 5, 2020, 8:59 p.m.