compareRaster(x, ..., extent=TRUE, rowcol=TRUE, crs=TRUE, res=FALSE, orig=FALSE,
rotation=TRUE, tolerance, stopiffalse=TRUE, showwarning=FALSE)
TRUE
, bounding boxes are comparedTRUE
, number of rows and columns of the objects are comparedTRUE
, coordinate reference systems are compared.TRUE
, resolutions are compared (redundant when checking extent and rowcol)TRUE
, origins are comparedTRUE
, rotations are comparedrasterOptions
. It sets difference (relative to the cell resolution) that is permissible for objects to be considered 'equal',TRUE
, an error will occur if the objects are not the sameTRUE
, an warning will be given if objects are not the same. Only relevant when stopiffalse
is TRUE
r1 <- raster()
r2 <- r1
r3 <- r1
compareRaster(r1, r2, r3)
nrow(r3) <- 10
# compareRaster(r1, r3)
compareRaster(r1, r3, stopiffalse=FALSE)
compareRaster(r1, r3, rowcol=FALSE)
Run the code above in your browser using DataLab