Dear Gianni,

Something along these lines should directly return what you look for:

C <- A == B

Best
Wilfried




Le 6 févr. 2013 à 13:41, gianni lavaredo a écrit :

> Dear Members list,
> 
> I have two raster (A and B) with the same extent, number of rows and
> columns, projection, resolution, and origin. Some pixels of A have the same
> values of B.
> 
> I wish in a code saving style compare A with B and create a new raster
> where the pixel value is 1  (when the statement is true: the pixel value of
> A and B are equal) otherwise 0 (false)
> 
> Do you know some specific function in raster
> Thanks in advance
> Gianni
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo



	[[alternative HTML version deleted]]

