getData: getData

Description Usage Arguments Value

View source: R/getData.R

Description

This is function which takes as an input an SDG indicator, and returns the latest dataset for that indicator as a dataframe. Pay attention to the naming of the SDG indicators in the default settings.

Usage

1
2
3
4
getData(sdg = c("2.1.1", "2.1.2", "2.3.1", "2.3.2", "2.5.1_Plants",
  "2.5.1_Animals", "2.5.2", "2.a.1", "2.c.1", "5.a.1", "5.a.2", "6.4.1",
  "6.4.2", "12.3.1", "14.4.1", "14.6.1", "14.7.1", "14.b.1", "15.1.1",
  "15.2.1", "15.4.2", "15.6.1"))

Arguments

sdg

is a specific SDG indicator under FAO custodianship

Value

This function returns a tibble containing the latest published data


michaelrahija/FAOSDGdata documentation built on June 14, 2020, 5:16 p.m.