Learn R Programming

move (version 4.2.5)

equalProj: Checks projections for being equal

Description

Checks whether all objects of a list are in the same projection.

Usage

# S4 method for list
equalProj(x)

Value

TRUE or FALSE

It returns TRUE if none of the objects have a proj4string.

Arguments

x

a list of projected objects of class raster, move, moveStack, moveBurst, DBBMM, DBBMMStack, DBBMMBurstStack, dynBGB

Author

Bart Kranstauber & Anne Scharf

Details

equalProj checks for equal projections using the function of identicalCRS from the package sp. It returns TRUE if none of the objects have a proj4string.

Examples

Run this code
data(fishers)
ricky<-fishers[['Ricky.T']]
data(leroy)
data(leroydbbmm)

equalProj(list(leroydbbmm,leroydbbmm))
equalProj(list(leroy,leroydbbmm))
equalProj(list(leroy,ricky))

Run the code above in your browser using DataLab