Learn R Programming

geojsonio (version 0.11.3)

as.location: 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

Run this code
if (FALSE) {
# A file
file <- system.file("examples", "zillow_or.geojson", package = "geojsonio")
as.location(file)

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

Run the code above in your browser using DataLab