tidygeo: Extract a tidy data frame from geoRSS, geo-Atom and geoJSON feeds
Description
Extract a tidy data frame from geoRSS, geo-Atom and geoJSON feeds
Usage
tidygeo(
feed,
config = list(),
clean_tags = TRUE,
list = FALSE,
parse_dates = TRUE
)
Arguments
feed
character, the url for the feed that you want to parse,
e.g. "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.atom".
config
Arguments passed off to httr::GET().
clean_tags
default TRUE. Clean HTML tags from summary and content?
list
default FALSE. Return metadata and entry information in separate dataframes?
These will be combined in a named list.
parse_dates
logical, default TRUE.
If TRUE, tidyRSS will attempt to parse columns that contain
datetime values, although this may fail, see note.
Value
A data frame of class "sf", "tbl_df", "tbl" and "data.frame".
Examples
Run this code# NOT RUN {
tidygeo("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.atom")
# }
Run the code above in your browser using DataLab