Format convert STATS19 data into spatial (sf) object
format_sf(x, lonlat = FALSE)
Data frame created with read_accidents()
read_accidents()
Should the results be returned in longitude/latitude? By default FALSE, meaning the British National Grid (EPSG code: 27700) is used.
FALSE
# NOT RUN { x_sf = format_sf(accidents_sample) sf:::plot.sf(x_sf) # }
Run the code above in your browser using DataLab