Learn R Programming

wbstats (version 0.2)

wbget: Call the World Bank API and return a formatted data frame

Description

This function calls wbget.raw and determines if there are multiple pages from the request. If there are multiple pages then if generates a list of data frames from each page and then combines the results with do.call("rbind", mylist)

Usage

wbget(url_string, indicator)

Arguments

url_string

A character string. A formatted url string

indicator

A character string. indicatorID for request. Used for error returns

Value

A data frame