According to ?merge, you could try adjusting the default value of the "tolerance" argument.
Nora Ernst wrote > I'm working with raster data (satellite imagery) and the raster package. > The > idea is to merge two raster files that are partially overlaping, do > have the > same coordinate system and resolution but not the same origin. As > expected, > the functions mosaic(r1,r2) as well as merge(r1,r2)) give the error > message: > > Error in compareRaster(x, extent = FALSE, rowcol = FALSE, orig = TRUE, : > different origin > > >> origin(r1) > [1] 5.582522e-05 1.124150e-03 >> origin(r2) > [1] 0.001054868 -0.001124150 > > > Can anyone tell me how it is possible to merge rasters with different > origin? -- View this message in context: http://r.789695.n4.nabble.com/raster-package-merge-mosaic-tp4678890p4678899.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.