powered by
Get or set the coordinate reference system (CRS) of a SpatRaster object.
# S4 method for SpatRaster crs(x) # S4 method for SpatVector crs(x) # S4 method for SpatRaster crs(x, ...)<-value # S4 method for SpatVector crs(x, ...)<-value
SpatRaster
character string describing a coordinate reference system in the PROJ.4 "+" format
additional arguments (none implemented)
character or modified SpatRaster
# NOT RUN { r <- rast() crs(r) #crs(r) <- "+proj=lcc +lat_1=48 +lat_2=33 +lon_0=-100 +ellps=WGS84" #crs(r) # }
Run the code above in your browser using DataLab