Skip to Content

Quandl {Quandl}

Pulls Data from the Quandl API
Package: 
Quandl
Version: 
2.1.2

Description

An authentication token is needed for access to the Quandl API multiple times. Set your access_token with Quandl.auth function.

Usage

Quandl(code, type = c("raw", "ts", "zoo", "xts"),
    start_date, end_date,
    transformation = c("", "diff", "rdiff", "normalize", "cumul", "rdiff_from"),
    collapse = c("", "weekly", "monthly", "quarterly", "annual"),
    rows, sort = c("desc", "asc"), meta = FALSE,
    authcode = Quandl.auth())

Arguments

code
Dataset code on Quandl specified as a string or an array of strings.
type
Type of data returned specified as string. Can be 'raw', 'ts', 'zoo' or 'xts'.
start_date
Use to truncate data by start date in 'yyyy-mm-dd' format.
end_date
Use to truncate data by end date in 'yyyy-mm-dd' format.
transformation
Apply Quandl API data transformations.
collapse
Collapse frequency of Data.
rows
Select number of dates returned.
sort
Select if data is given to R in ascending or descending formats. Helpful for the rows parameter.
meta
Returns meta data in list format as well as data.
authcode
Authentication Token for extended API access by default set by Quandl.auth.

Details

For instructions on finding your authentication token go to www.quandl.com/API

Values

Depending on the outpug flag the class is either data.frame, time series, xts, zoo or a list containing one.

References

This R package uses the Quandl API. For more information go to http://www.quandl.com/api. For more help on the package itself go to http://www.quandl.com/help/r.

See Also

Quandl.auth

Examples

## Not run:
quandldata = Quandl("NSE/OIL", collapse="monthly", start_date="2013-01-01", type="ts")
plot(quandldata[,1])
## End(Not run)

Author(s)

Raymond McTaggart

Documentation reproduced from package Quandl, version 2.1.2. License: GPL-2