| tidy_index | R Documentation |
Tidy a Gapminder indicator data sheet.
tidy_index(filepath)
tidy_indice(filepath)
filepath |
Path to a Gapminder indicator data sheet (.csv, .xlsx, or .xls). |
The indicator data sheet as a tidy data frame with columns
country, year, and the indicator name.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.