Re: [R] repace values in raster based on values in another raster

2012-09-05 Thread PIKAL Petr
39751 3.0707204 [5,] -1.52596060 -0.5604825 -0.8232986 -0.3804572 Regards Petr > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of sean_parks > Sent: Wednesday, September 05, 2012 12:58 AM > To: r-help@r-pro

[R] repace values in raster based on values in another raster

2012-09-04 Thread sean_parks
Hi, I am attempting to create a new raster based on values of another raster. In the Arc world, this is called a "conditional statement" or "con statement". I am having quite a bit of difficulty figuring this out in R. Here is some pseudo-code: if (fire.did.not.occurr == 1) then (new. raster =