spTransform for map projection and datum transformation

spTransform(x, CRSobj, ...)

Arguments

x

object to be transformed

CRSobj

object of class CRS, or of class character in which case it is converted to CRS

...

further arguments (ignored)

Value

object with coordinates transformed to the new coordinate reference system.

Note

Package sf provides the methods doing actual transformation.