Package 'tidygapminder'

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

Help Index


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)