[R] Dry Spell Problem.

Frederic Ntirenganya ntfredo at gmail.com
Mon Oct 20 09:47:44 CEST 2014


Dear All,

I want to solve the following problem on a climatic dataset. It contains
Year, Day and Rain as Columns names.

Ex: > head(Samaru56)
  Year Day Rain
1 1928   1    0
2 1928   2    0
3 1928   3    0
4 1928   4    0
5 1928   5    0
6 1928   6    0

The first day from April 01 that gets more than 20 mm on a single day, or
totalled
over 2 consecutive days with the additional condition that there is no 10
day (or longer) dry spell in the next 30 days.

Any help is appreciated. Thanks!!!

Regards,
Frederic.
-- 
Frederic Ntirenganya
Maseno University,
Kenya.
Mobile:(+254)718492836
Email: fredo at aims.ac.za
https://sites.google.com/a/aims.ac.za/fredo/

	[[alternative HTML version deleted]]



More information about the R-help mailing list