Set the projection of a spatial object.

assignproj(x, proj = "+proj=longlat +datum=WGS84")

Arguments

x

spatial object for use with raster::projection()

proj

PROJ.4 string

Value

a spatial object with the projection set