count(x, value, ...)
digits
, the number of digits for rounding the values, default is 0, i.e. numbers are compared as integers.freq
r <- raster(nrow=18, ncol=36)
r[] <- runif(ncell(r))
r <- r * r * r * 10
count(r, 5)
Run the code above in your browser using DataLab