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: about 1 month ago
JSON representation
The tidygapminder repository
- Host: GitHub
- URL: https://github.com/ebedthan/tidygapminder
- Owner: Ebedthan
- Created: 2019-11-16T18:27:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T13:14:32.000Z (over 4 years ago)
- Last Synced: 2024-09-24T22:23:24.572Z (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
[![Build Status](https://travis-ci.org/Ebedthan/tidygapminder.svg)](https://travis-ci.org/Ebedthan/tidygapminder)
[![codecov](https://codecov.io/gh/Ebedthan/tidygapminder/branch/master/graph/badge.svg)](https://codecov.io/gh/Ebedthan/tidygapminder)
[![Build status](https://ci.appveyor.com/api/projects/status/01ss9tmkw5jyaqfu?svg=true)](https://ci.appveyor.com/project/Ebedthan/tidygapminder)
![](http://cranlogs.r-pkg.org/badges/grand-total/tidygapminder)
![](https://www.r-pkg.org/badges/version-ago/tidygapminder)
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](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")` !!!