gj_write: Write inputs to a geojson file

Description Usage Arguments Examples

View source: R/write.R

Description

Write inputs to a geojson file

Usage

1

Arguments

x

input character, json, or geojson

file

file path to write to

...

Further args

Examples

1
2
3
gj_write(x = '{"type": "Point", "coordinates": [-100, 80]}',
  (file <- tempfile()))
jsonlite::fromJSON(file)

geojsonlint documentation built on Feb. 13, 2020, 9:06 a.m.