Type: | Package |
Title: | Tidy GeoRSS |
Version: | 0.0.1 |
Author: | Robert Myles McDonnell |
Maintainer: | Robert Myles McDonnell <robertmylesmcdonnell@gmail.com> |
Description: | In order to easily integrate geoRSS data into analysis, 'tidygeoRSS' parses 'geo' feeds and returns tidy simple features data frames. |
URL: | https://github.com/RobertMyles/tidygeoRSS |
BugReports: | https://github.com/RobertMyles/tidygeoRSS/issues |
Encoding: | UTF-8 |
License: | MIT + file LICENSE |
Depends: | R (≥ 3.1.0) |
Imports: | xml2 (≥ 1.3.1), httr (≥ 1.4.1), anytime (≥ 0.3.7), dplyr (≥ 1.0.0), tidyRSS (≥ 2.0.2), jsonlite (≥ 1.6.1), strex (≥ 1.2.0), stringr (≥ 1.4.0), magrittr (≥ 1.5), purrr (≥ 0.3.3), sf (≥ 0.9.1), rlang (≥ 0.4.6) |
Suggests: | httptest, knitr, rmarkdown, testthat (≥ 2.1.0) |
RoxygenNote: | 7.1.0 |
NeedsCompilation: | no |
Packaged: | 2020-06-09 14:13:06 UTC; f64k1s8 |
Repository: | CRAN |
Date/Publication: | 2020-06-14 14:50:02 UTC |
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 |
|
config |
Arguments passed off to |
clean_tags |
default |
list |
default |
parse_dates |
|
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")