Hi Frederic,
It looks like you have a number of daily rainfall values and you want
to get the mean rainfall on days where there was some rain. What you
probably want is:
daily_rainfall<-rpois(50,2)
mean(daily_rainfall[daily_rainfall>0])
You may have to add na.rm=TRUE if there are NAs in your data
Hi All,
I want to compute Mean rain per rain day from rainfall data but i don't
know how to go about that. Anyone who understand the approach I can use can
help me. In addition, I would like to have RScript which can help me to
compute it. thanks.
Regards,
Frederic.
Frederic Ntirenganya
Maseno U
2 matches
Mail list logo