Hi Ned,

Function reclass() does this.

Jacob.

--- On Mon, 13/9/10, Ned Horning <horning@amnh.org> wrote:

From: Ned Horning <horning@amnh.org>
Subject: [R-sig-Geo] Apply a look-up table using Raster package
To: r-sig-geo@stat.math.ethz.ch
Date: Monday, 13 September, 2010, 22:16

Hi - Is it possible to modify a Raster layer using a look-up table? I have a data.frame object with data to map pixel values in a Raster layer from one value to another but I'm not sure how to apply it. I tried to be creative with setValues but didn't get too far.

All the best,

Ned

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo



      
	[[alternative HTML version deleted]]

