Re: [R] Drought severity index: Excel to R

2010-01-16 Thread jim holtman
Try this: DS <- structure(list(anomaly = c(-27.3, 14.4, 29, -38.1, -3.4, 55.1, -1, 21.9, -10.9, -7.8, -48.2, -44.9, -43.8, -10.3, 44.2, -0.5, 96.7, -32, -0.2, -38.6, 73.6, -17.5, -57.8, 10.7, -33.4, 46.1, 26.7, -37.3, 1.2, 36.3, 39.6, 31), prev6mon = c(NA, NA, NA, NA, NA, 29.7, 56, 63.5, 23.6, 53.

Re: [R] Drought severity index: Excel to R

2010-01-16 Thread David Winsemius
On Jan 16, 2010, at 2:57 PM, Muhammad Rahiz wrote: Dear all, I'm trying to make an R code for the drought severity index (DSI) developed by Philips and McGregor (1998). You can refer to the description of the algorithm on page 19 from http://dissertations.port.ac.uk/229/01/MaloneS.pdf Th

[R] Drought severity index: Excel to R

2010-01-16 Thread Muhammad Rahiz
Dear all, I'm trying to make an R code for the drought severity index (DSI) developed by Philips and McGregor (1998). You can refer to the description of the algorithm on page 19 from http://dissertations.port.ac.uk/229/01/MaloneS.pdf The code is given in Excel as the following and can be fo