Description Usage Arguments Value Examples
View source: R/geojson_to_sf.R
Takes a dataframe or tibble that contains a geojson column and outputs this as a dataframe or tibble with simple features geometry.
1 | geojson_to_sf(data, geojson_colname)
|
data |
a dataframe or tibble containing a geojson column |
geojson_colname |
a string representing the geojson column name |
A simple feature data frame or tibble.
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"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.