get_IATI_transaction: Pull Transaction data from IATI datastore API

Description Usage Arguments Value Examples

View source: R/get_IATI_transaction.R

Description

Function to get activities endpoint from IATI-compliant dataset.

Usage

1
2
3
4
5
6
7
get_IATI_transaction(
  url = "https://iatidatastore.iatistandard.org/search/transaction?q=",
  sector_vocabulary = "sector_vocabulary:(10 1 9 7)",
  country = c("Colombia"),
  daterange_actual = c("2018-01-01T00:00:00Z", "2021-01-01T00:00:00Z"),
  daterange_planned = c("2018-01-01T00:00:00Z", "2021-01-01T00:00:00Z")
)

Arguments

url

URL for websites containing IATI-compliant dataset. Default is "https://iatidatastore.iatistandard.org/search/activity?q="

sector_vocabulary

sector typology - Default is DAC, Humanitarian and SDG sector_vocabulary:(10 1 9 7)

country

list of Country or single country to pull data about

daterange_actual

list with actual start and end date of activities

daterange_planned

list with planned start and end date of activities

Value

transaction Parsed content on activities from IATI-compliant datasets.

Examples

1
2
3
4
5
6
7
8
## Not run: 
data <- get_IATI_transaction(url = "https://iatidatastore.iatistandard.org/search/activity?q=",
                       sector_vocabulary = "sector_vocabulary:(10 1 9 7)"
             country = c("Colombia"),
             daterange_actual = c("2018-01-01T00:00:00Z", "2021-01-01T00:00:00Z"),
             daterange_planned = c("2018-01-01T00:00:00Z", "2021-01-01T00:00:00Z")
 
## End(Not run)

unhcr-americas/IatiTidy documentation built on June 6, 2021, 12:24 a.m.