requestQ: Downloads cross country data from Quandl

Description Usage Arguments Value Author(s) See Also Examples

View source: R/requestQ.R

Description

This function takes as arguments a data.frame object generated by searchQ() function and the rows indicating the variables of interest, and then it requests the data for all countries selected. It returns a list of xts objects with one variable in each element and the countries as columns. It accepts all arguments of the Quandl() function and a specific list of countries such as: Europe, European Union, Euro Area, Eastern Europe, Western Europe, America, Latin America, North America, South America, Asia, Oceania, Africa, MENA, G20 and G7.

Usage

1
requestQ(searchQ, rows = 1, countries = "all", type = "xts", order = "asc", collapse = "annual", ...)

Arguments

searchQ

A data.frame object generated by searchQ() function.

rows

A vector with the rows of the variables in the searchQ object. It defaults to the first row.

countries

A vector with country names or a specific group of countries such as: Europe, European Union, Euro Area, Eastern Europe, Western Europe, America, Latin America, North America, South America, Asia, Oceania, Africa, MENA, G20 and G7.

type

Type of the object returned. Either "xts", "raw", "ts", "zoo", "timeSeries". It defaults to "xts".

order

The order of the series. Either "asc" (ascending) or "desc" (descending). It defaults to "asc".

collapse

Collapse frequency of data, either "annual", "monthly", "quarterly", "weekly" or "daily". It defaults to "annual".

...

Other Quandl() arguments

Value

It returns a list of xts objects with one variable in each element.

Author(s)

Regis A. Ely

See Also

searchQ

Examples

1
2
3
## Not run: 
data <- requestQ(search, c(7,11), countries = "G20")
## End(Not run)

regisely/macrodata documentation built on May 27, 2019, 4:05 a.m.