Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ebedthan/tidygapminder
The tidygapminder repository
https://github.com/ebedthan/tidygapminder
gapminder r r-package
Last synced: 27 days ago
JSON representation
The tidygapminder repository
- Host: GitHub
- URL: https://github.com/ebedthan/tidygapminder
- Owner: Ebedthan
- Created: 2019-11-16T18:27:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T13:14:32.000Z (over 4 years ago)
- Last Synced: 2024-12-22T09:48:43.170Z (about 2 months ago)
- Topics: gapminder, r, r-package
- Language: R
- Homepage: https://ebedthan.github.io/tidygapminder/
- Size: 2.72 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
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%"
)
```# tidygapminder
[](https://travis-ci.org/Ebedthan/tidygapminder)
[](https://codecov.io/gh/Ebedthan/tidygapminder)
[](https://ci.appveyor.com/project/Ebedthan/tidygapminder)


[](https://www.repostatus.org/#active)tidygapminder is designed to make easy to tidy data retrieved from [Gapminder](https://www.gapminder.org). Learn more in `vignette("tidygapminder")`.
## Installation
You can install the released version of tidygapminder from [CRAN](https://CRAN.R-project.org) with:
```{r, eval = FALSE}
install.packages("tidygapminder")
```And the development version from [GitHub](https://github.com/) with:
```{r, eval = FALSE}
# install.packages("devtools")
devtools::install_github("ebedthan/tidygapminder")
```
## ExampleThis is a basic example which shows you how to solve a common problem:
```{r example-1}
library(tidygapminder)# From ----------------------------------
df <- readxl::read_xlsx(system.file("extdata", "agriculture_land.xlsx", package = "tidygapminder"))df
# To ------------------------------------
file <- system.file("extdata", "agriculture_land.xlsx", package = "tidygapminder")tidy_indice(file)
```Or more powerful:
```{r example-2}
# From ----------------------------------------
path <- system.file("extdata", package = "tidygapminder")
list.files(path)
df
df_ <- data.table::fread(system.file("extdata", "life_expectancy_years.csv", package = "tidygapminder"))
df_
# To ------------------------------------------
tidy_bunch(dirpath = path, merge = TRUE)
```
Enjoy `r emo::ji("smile")` !!!