as.location: Convert a path or URL to a location object.

View source: R/as.location.R

as.locationR Documentation

Convert a path or URL to a location object.

Description

Convert a path or URL to a location object.

Usage

as.location(x, ...)

Arguments

x

Input.

...

Ignored.

Examples

## Not run: 
# A file
file <- system.file("examples", "zillow_or.geojson",
  package = "geojsonlint")
as.location(file)

# A URL
url <- paste0("https://raw.githubusercontent.com/glynnbird/",
  "usstatesgeojson/master/california.geojson")
as.location(url)

## End(Not run)

ropensci/geojsonlint documentation built on Sept. 12, 2022, 8 a.m.