Skip to content
Prev 15334 / 29559 Next

continuous raster to binary

In terms of Tim's example:

plot(r)
r[] <- as.numeric(r[] > 3.5)
plot(r)

works for me.  Made only a small change from Thierry's elegant example 
to return numeric instead of boolean.

M
On 6/14/2012 9:56 AM, ONKELINX, Thierry wrote: