Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robertmyles/tidygeorss
An R package for extracting 'tidy' data frames from geoRSS feeds. Little brother of tidyRSS (https://github.com/RobertMyles/tidyRSS)
https://github.com/robertmyles/tidygeorss
atom-feed geo-rss geojson r rss tidy-data
Last synced: 3 days ago
JSON representation
An R package for extracting 'tidy' data frames from geoRSS feeds. Little brother of tidyRSS (https://github.com/RobertMyles/tidyRSS)
- Host: GitHub
- URL: https://github.com/robertmyles/tidygeorss
- Owner: RobertMyles
- License: other
- Created: 2020-01-23T12:12:51.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-20T15:15:47.000Z (over 4 years ago)
- Last Synced: 2024-12-05T06:18:17.850Z (20 days ago)
- Topics: atom-feed, geo-rss, geojson, r, rss, tidy-data
- Language: R
- Homepage:
- Size: 268 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
options(warn=-1)
```# tidygeoRSS 🌎 🌍 🌏
![R-CMD-check](https://github.com/RobertMyles/tidygeoRSS/workflows/R-CMD-check/badge.svg)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/tidygeoRSS)](https://cran.r-project.org/package=tidygeoRSS)The idea of tidygeoRSS is to parse 'geo' feeds -- RSS, Atom and JSON -- and return them as tibbles complete with the geographical information in a way that is compatible with the [sf](https://r-spatial.github.io/sf/articles/sf1.html) library.
For more information on these formats, see:
- geoRSS & geoAtom: [http://www.georss.org/](http://www.georss.org/)
- geoJSON: [https://geojson.org/](https://geojson.org/)## Installation
You can install the released version of tidygeoRSS from [CRAN](https://CRAN.R-project.org) with:
``` {r eval = FALSE}
install.packages("tidygeoRSS")
```And the development version from [GitHub](https://github.com/RobertMyles/tidygeoRSS) with:
```{r eval = FALSE}
# install.packages("remotes")
remotes::install_github("RobertMyles/tidygeoRSS")
```### Installing sf
tidygeoRSS relies on sf, which also relies on some system dependencies, so you will most likely have to install certain things before using tidygeoRSS. More information is available [here](https://r-spatial.github.io/sf/index.html#installing).
## Usage
### geoJSON example
```{r}
library(tidygeoRSS)
tidygeo("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson")
```### geo-Atom example
```{r}
tidygeo("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.atom")
```### geoRSS example
```{r}
tidygeo("http://www.geograph.org.uk/syndicator.php?format=GeoRSS")
```