Geospatial analysis tips
The R ecosystem is very well developed for geospatial analyses, with base R including many functions that can be used for reading, visualising, and analysing spatial data, along with a number of excellent packages available to enhance, simplify, and speed up spatial analyses.
sf: The key library for working with spatial objects (other than rasters)sp: The predecessor to sf, while largely replaced there are still many situations where this package is useful.raster: Raster data is a commonly used spatial data type, and the raster package is the most widely used and useful package for handling data of this type.terra: The terra package is currently still in development but is designed to be a replacement to the raster package, offering easier to use and faster functionsstars: This R package provides classes and methods for reading, manipulating, plotting and writing dense arrays, with space and time being array dimensions, called “data cubes”spatstats: An R package for spatial statistics with a strong focus on analysing spatial point patterns in 2D