Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dreamRs/where
:round_pushpin: Cities database and a game!
https://github.com/dreamRs/where
addin game r rstudio-addin
Last synced: 9 days ago
JSON representation
:round_pushpin: Cities database and a game!
- Host: GitHub
- URL: https://github.com/dreamRs/where
- Owner: dreamRs
- License: other
- Created: 2018-07-09T20:23:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-26T16:26:56.000Z (almost 5 years ago)
- Last Synced: 2024-08-13T07:15:21.605Z (4 months ago)
- Topics: addin, game, r, rstudio-addin
- Language: R
- Size: 6.42 MB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - dreamRs/where - :round_pushpin: Cities database and a game! (R)
README
# where
> A city database and a game !
[![Travis build status](https://travis-ci.org/dreamRs/where.svg?branch=master)](https://travis-ci.org/dreamRs/where)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)## Installation
Install development version from [GitHub](https://github.com/) with:
``` r
remotes::install_github("dreamRs/where")
```## Play online
* Country mode : https://dreamrs.shinyapps.io/where-is-this-country/
* City mode : https://dreamrs.shinyapps.io/where-is-this-city/## City database
Get all available cities (109 373) with:
``` r
library(where)
cities <- get_cities()
```Data contains all cities with a population > 1000 or seats of adm div (ca 150.000) from [GeoNames](http://www.geonames.org/export/).
Or for a specific country:
```r
uk <- get_cities(country_name = "United Kingdom")
```Get statistics by country:
```r
get_countries()
```## Test your geography skills!
### City mode
Choose a country or continent and guess where cities are :
``` r
where::where()
```![](img/where-city.png)
### Country mode
You can search country too :
```r
where(mode = "country")
```![](img/where-country.png)
### Options
You can launch application in your browser by setting:
```r
options("where.viewer" = "browser")
```You can use a default area to play with:
```r
options("where.area" = "France")
```