Title: | Easily Tidy Gapminder Datasets |
---|---|
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. |
Authors: | Anicet Ebou [aut, cre] |
Maintainer: | Anicet Ebou <[email protected]> |
License: | GPL-2 |
Version: | 0.1.1 |
Built: | 2024-11-14 03:29:15 UTC |
Source: | https://github.com/ebedthan/tidygapminder |
tidy_indice
.Tidy Gapminder indicator data sheets stored in a folder
using tidy_indice
.
tidy_bunch(dirpath = ".", merge = FALSE, ...)
tidy_bunch(dirpath = ".", merge = FALSE, ...)
dirpath |
Path to folder containing indices data sheets. |
merge |
A boolean. If true, combines all indices data sheets in one. Default: FALSE. |
... |
Ellipsis. |
List of indices data frames tidied (if merge
= FALSE)
or a single data frame of all indices tidied
(if merge
= TRUE).
folder_path <- system.file("extdata", package = "tidygapminder") tidy_bunch(folder_path)
folder_path <- system.file("extdata", package = "tidygapminder") tidy_bunch(folder_path)
Tidy Gapminder indicator single data sheet.
tidy_indice(filepath)
tidy_indice(filepath)
filepath |
Path to indice data sheet. |
The indicator data sheet as a tidy data frame.
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)
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)