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

Description Usage Arguments Examples

View source: R/format.R

Description

Format convert STATS19 data into spatial (sf) object

Usage

1
format_sf(x, lonlat = FALSE)

Arguments

x

Data frame created with read_accidents()

lonlat

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

Examples

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

ITSLeeds/stats19 documentation built on May 4, 2019, 7:35 a.m.