compare(x, ..., extent=TRUE, rowcol=TRUE, prj=TRUE, res=FALSE, orig=FALSE, tolerance, stopiffalse=TRUE, showwarning=FALSE)
TRUE
, bounding boxes are comparedTRUE
, number of rows and columns of the objects are comparedTRUE
projections are compared.TRUE
, resolutions are compared (redundant when checking extent and rowcol)TRUE
, origins are comparedTRUE
, 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
compare(r1, r2, r3)
nrow(r3) <- 10
# compare(r1, r3)
compare(r1, r3, stopiffalse=FALSE)
compare(r1, r3, rowcol=FALSE)
Run the code above in your browser using DataLab