tidy_index: Tidy a Gapminder indicator data sheet.

View source: R/tidy_index.R

tidy_indexR Documentation

Tidy a Gapminder indicator data sheet.

Description

Tidy a Gapminder indicator data sheet.

Usage

tidy_index(filepath)

tidy_indice(filepath)

Arguments

filepath

Path to a Gapminder indicator data sheet (.csv, .xlsx, or .xls).

Value

The indicator data sheet as a tidy data frame with columns country, year, and the indicator name.

Examples

csv_filepath <- system.file("extdata/life_expectancy_years.csv",
                             package = "tidygapminder")
xlsx_filepath <- system.file(
                 "extdata/agriculture_land.xlsx",
                 package = "tidygapminder")

tidy_index(csv_filepath)
tidy_index(xlsx_filepath)


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