Details
Prepares a grid file for SaTScan, which defines the centers of the scanning windows.
Leverages prep_geo logic for coordinate extraction and formatting.
SaTScan File Specification
The Grid File has the same structure as the Coordinates File:
<LocationID> <Latitude/Y> <Longitude/X>
LocationID: Unique identifier for the grid point.
Coordinates: Same rules as
prep_geo(Lat/Long order vs X/Y order).
See also
ss_grd() for the new ss_tbl interface.
Examples
if (FALSE) { # \dontrun{
# From sf grid
grid_sf <- sf::st_make_grid(study_area, n = c(10, 10)) %>% sf::st_sf()
grid_sf$id <- 1:nrow(grid_sf)
grd_obj <- prep_grd(grid_sf, loc_id = id)
} # }