geojson_to_sf: Takes a dataframe or tibble that contains a geojson column...

Description Usage Arguments Value Examples

View source: R/geojson_to_sf.R

Description

Takes a dataframe or tibble that contains a geojson column and outputs this as a dataframe or tibble with simple features geometry.

Usage

1
geojson_to_sf(data, geojson_colname)

Arguments

data

a dataframe or tibble containing a geojson column

geojson_colname

a string representing the geojson column name

Value

A simple feature data frame or tibble.

Examples

1
2
3
4
5
6
7
geojson_to_sf(
data=bduk_bq(
sql="SELECT * FROM dcms-datalake-staging.GEO_ONS.shp_LA LIMIT 1",
project="dcms-datalake-staging",
keypath="/home/dcms/keys"),
geojson_colname = "geom"
)

SamA-DS/Rbduk documentation built on May 1, 2021, 5:29 a.m.