| Type: | Package | 
| Title: | Easily Tidy Gapminder Datasets | 
| Version: | 0.1.1 | 
| Maintainer: | Anicet Ebou <anicet.ebou@gmail.com> | 
| Description: | A toolset that allows you to easily import and tidy data sheets retrieved from Gapminder data web tools. It will therefore contribute to reduce the time used in data cleaning of Gapminder indicator data sheets as they are very messy. | 
| Depends: | R (≥ 3.1.0) | 
| Imports: | tidyr, readxl, data.table, dplyr | 
| Suggests: | testthat (≥ 2.1.0), covr, knitr, rmarkdown | 
| License: | GPL-2 | 
| Encoding: | UTF-8 | 
| LazyData: | true | 
| URL: | https://ebedthan.github.io/tidygapminder | 
| BugReports: | https://github.com/ebedthan/tidygapminder/issues | 
| RoxygenNote: | 7.0.2 | 
| VignetteBuilder: | knitr | 
| NeedsCompilation: | no | 
| Packaged: | 2020-02-03 23:23:56 UTC; ediman | 
| Author: | Anicet Ebou | 
| Repository: | CRAN | 
| Date/Publication: | 2020-02-04 07:30:02 UTC | 
Tidy Gapminder indicator data sheets stored in a folder
using tidy_indice.
Description
Tidy Gapminder indicator data sheets stored in a folder
using tidy_indice.
Usage
tidy_bunch(dirpath = ".", merge = FALSE, ...)
Arguments
| dirpath | Path to folder containing indices data sheets. | 
| merge | A boolean. If true, combines all indices data sheets in one. Default: FALSE. | 
| ... | Ellipsis. | 
Value
List of indices data frames tidied (if merge = FALSE)
or a single data frame of all indices tidied
(if merge = TRUE).
Examples
folder_path <- system.file("extdata", package = "tidygapminder")
tidy_bunch(folder_path)
Tidy Gapminder indicator single data sheet.
Description
Tidy Gapminder indicator single data sheet.
Usage
tidy_indice(filepath)
Arguments
| filepath | Path to indice data sheet. | 
Value
The indicator data sheet as a tidy data frame.
Examples
csv_filepath <- system.file("extdata/life_expectancy_years.csv",
                             package = "tidygapminder")
xlsx_filepath <- system.file(
                 "extdata/agriculture_land.xlsx",
                 package = "tidygapminder")
tidy_indice(csv_filepath)
tidy_indice(xlsx_filepath)