This question already has an answer here:
I have a raster file which has been classified from 1 to 255. I have to reclassify into binary form where 1 to 11 must be classified as 1 and the rest must be 0.How would I be able to do it in R. My process doesn't seem to be correct.
c[which(vm.c[]!= c(1:11))]
I have a raster file which has been classified from 1 to 255. I have to reclassify into binary form where 1 to 11 must be classified as 1 and the rest must be 0.How would I be able to do it in R. My process doesn't seem to be correct.
c[which(vm.c[]!= c(1:11))]