
Last chance! 50% off unlimited learning
Sale ends in
projection(x, asText = TRUE)
projection(x) <- value
TRUE
, the projection is returned as text. Otherwise a CRS object is returnedprojectRaster, CRS-class, spTransform-methods, projInfo
r <- raster()
projection(r)
projection(r) <- "+proj=lcc +lat_1=48 +lat_2=33 +lon_0=-100 +ellps=WGS84"
projection(r)
Run the code above in your browser using DataLab