[R-sig-Geo] Count values "greater than" in rasterbrick layers

dschneiderch Dominik.Schneider at colorado.edu
Tue Jul 22 22:36:30 CEST 2014


Thiago - 
With regards to your original attempt for part b, I  believe using length()
instead of sum() will get you what you want.  In this case, sum(x) and
sum(x[x>1]) are the same assuming you have no values less than 1. Length can
be used as a proxy for counting how many days rain>1.




--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Count-values-greater-than-in-rasterbrick-layers-tp7586746p7586782.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list