Skip to content

Commit 9d11dc3

Browse files
committed
spatial_point_pattern: use PROJ>=6 compliant CRS
1 parent 096db6a commit 9d11dc3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • content/tutorials/spatial_point_pattern

content/tutorials/spatial_point_pattern/index.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ The next step is to convert the dataset in to a `SpatialPoints` object with WGS8
3434

3535
```{r reproject}
3636
library(sp)
37-
crs_wgs84 <- CRS("+init=epsg:4326")
38-
crs_lambert <- CRS("+init=epsg:31370")
37+
crs_wgs84 <- CRS(SRS_string = "EPSG:4326")
38+
crs_lambert <- CRS(SRS_string = "EPSG:31370")
3939
coordinates(points) <- ~lon + lat
4040
points@proj4string <- crs_wgs84
4141
points_lambert <- spTransform(points, crs_lambert)

0 commit comments

Comments
 (0)