raster package can do that. see ?polygonsToRaster and the vignettes of the same package. -- View this message in context: http://r.789695.n4.nabble.com/Mask-grid-in-R-tp2301703p2302057.html Sent from the R help mailing list archive at Nabble.com.