format_sf: Format convert STATS19 data into spatial (sf) object

View source: R/format.R

format_sfR Documentation

Format convert STATS19 data into spatial (sf) object

Description

Format convert STATS19 data into spatial (sf) object

Usage

format_sf(x, lonlat = FALSE)

Arguments

x

Data frame created with read_collisions()

lonlat

Should the results be returned in longitude/latitude? By default FALSE, meaning the British National Grid (EPSG code: 27700) is used.

Examples

x_sf = format_sf(accidents_sample)
sf:::plot.sf(x_sf)

stats19 documentation built on Nov. 5, 2023, 1:09 a.m.