This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(tidyverse) | |
| # devtools::install_github('rensa/ggflags') | |
| library(ggflags) # https://github.com/rensa/ggflags | |
| library(ggrepel) | |
| library(ggthemes) | |
| library(gganimate) | |
| # Hecho por Rafa @GonzalezGouveia | |
| # Con gusto para #DatosDeMiercoles, propuesto por @R4DS_es |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: "World maps" | |
| output: | |
| html_document: | |
| df_print: paged | |
| --- | |
| ```{r echo = FALSE, message = FALSE} | |
| library(tidyverse) | |
| library(sf) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(httr) | |
| library(dplyr) | |
| ACLED_call <- function(query="") { | |
| url <- paste0("http://acleddata.com/api/acled/read", query) | |
| resp <- GET(url) | |
| if (http_type(resp) != "application/json") { | |
| stop("API did not return json", call. = FALSE) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From San Francisco to New York to Paris, city governments, high-class restaurants, | |
| schools, and religious groups are ditching bottled water in favor of what comes out of the | |
| faucet. With people no longer content to pay 1,000 times as much for bottled water, a | |
| product no better than water from the tap, a backlash against bottled water is growing. | |
| (5) The U.S. Conference of Mayors, which represents some 1,100 American cities, | |
| discussed at its June 2007 meeting the irony of purchasing bottled water for city employees | |
| and for city functions while at the same time touting1 the quality of municipal water. The | |
| group passed a resolution sponsored by Mayors Gavin Newsom of San Francisco, Rocky | |
| Anderson of Salt Lake City, and R. T. Rybak of Minneapolis that called for the examination | |
| (10) of bottled water’s environmental impact. The resolution noted that with $43 billion a year |