Skip to contents

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

Usage

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.