tidygeo {tidygeoRSS}R Documentation

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".

Note

tidygeo() attempts to parse columns that should contain dates. This can fail, as can be seen in tidyRSS here. If you need lower-level control over the parsing of dates, it's better to leave parse_dates equal to FALSE and then parse these yourself.

Examples

## Not run: tidygeo("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.atom")

[Package tidygeoRSS version 0.0.1 Index]