sdg_data: Load data from UNSD SDG database

Description Usage Arguments Value

View source: R/data.R

Description

sdg_data() provides a data frame of all data for specified series in the UNSD SDG database.

Usage

1
2
3
4
5
6
7
sdg_data(
  series,
  area_codes = NULL,
  time_start = NULL,
  time_end = NULL,
  clean_names = TRUE
)

Arguments

series

Character vector of SDG series codes.

area_codes

M49 codes for specific geoAreas.

time_start

Numeric value indicating the starting (inclusive) year of the series.

time_end

Numeric value indicating the ending (inclusive) year of the series.

clean_names

Logical value indicating whether or not to clean up names of the returned data frame. If TRUE, the default, spaces are replaced with underscores and all other non-alphabetic characters are removed.

Value

A data frame.


caldwellst/goalie documentation built on Jan. 22, 2022, 9:59 a.m.