tidy_bunch: Tidy Gapminder indicator data sheets stored in a folder.

View source: R/tidy_bunch.R

tidy_bunchR Documentation

Tidy Gapminder indicator data sheets stored in a folder.

Description

Applies tidy_index to all Gapminder data sheets found in a directory and optionally combines them into a single data frame.

Usage

tidy_bunch(dirpath = ".", combine = FALSE, ...)

Arguments

dirpath

Path to folder containing indices Gapminder indicator data sheets. Defaults to the current working directory.

combine

A boolean. If TRUE, combines all tidied data sheets into a single data frame joined on country and year. Default: FALSE.

...

Additional arguments (reserved for future use).

Value

If combine = FALSE (default), a named list of tibbles, one per file. If combine = TRUE, a single tibble with all indicators merged by country and year.

Examples

folder_path <- system.file("extdata", package = "tidygapminder")

tidy_bunch(folder_path)
tidy_bunch(folder_path, combine = TRUE)


tidygapminder documentation built on May 17, 2026, 1:09 a.m.