Dear list, I have a polygon that I converted to raster (kudos to polygonsToRaster()). I would like to assign values (through a custom function) to cells within this polygon (now as raster). Roughly speaking, cell value will depend on its distance from the central cell (polygon centroid). How would you go about doing this? Is there a more efficient way of doing this, or will I have to hard code it, cell by cell?
Cheers, Roman [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo