View source: R/weightedweatherindices.R
wwi | R Documentation |
Converts the weekly weather data into yearly weighted weather indices with weights being the correlation coefficient between weekly weather data over the years and crop yield over the years
wwi(y, weatherp)
y |
A vector of yearly yield data for t years |
weatherp |
Weekly weather data for t years as vector (total observations= number of years*number of weeks in each year) |
A vector of weather indices
Jain, R. C., Agrawal, R., & Jha, M. P. (1980). Effect of climatic variables on rice yield and its forecast. MAUSAM, 31(4), 591-596.
data(Burdwanweather) #Weekly weather data for the rice growing season in Burdwan
data(Burdwanriceyield) #Yearly Yield data of rice in Burdwan
wwi.maxtem<-wwi(Burdwanriceyield$burdwan,Burdwanweather$Max.Temperature)
wwi.maxtem
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.