Quandl (version 2.11.0)

Quandl: Retrieves Data from the Quandl Dataset endpoint and formats

Description

Retrieves Data from the Quandl Dataset endpoint and formats

Usage

Quandl(
  code,
  type = c("raw", "ts", "zoo", "xts", "timeSeries"),
  transform = c("", "diff", "rdiff", "normalize", "cumul", "rdiff_from"),
  collapse = c("", "daily", "weekly", "monthly", "quarterly", "annual"),
  order = c("desc", "asc"),
  meta = FALSE,
  force_irregular = FALSE,
  ...
)

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', 'xts' or 'timeSeries'.

transform

Apply Quandl API data transformations.

collapse

Collapse frequency of Data.

order

Select if data is given to R in ascending or descending formats. Helpful for the rows parameter.

meta

Adds meta data as an attribute to the returned Data.

force_irregular

When set to TRUE, forces the index of the Data to be of date format yyyy-mm-dd

...

Additional named values that are interpreted as Quandl API parameters. Please see https://docs.quandl.com/docs/in-depth-usage#get-time-series-metadata for a full list of parameters.

Value

Depending on the type the class is either data.frame, time series, xts, zoo or timeSeries.

Details

Set your api_key with Quandl.api_key function. For instructions on finding your api key go to https://www.quandl.com/account/profile.

References

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

See Also

Quandl.api_key

Examples

Run this code
# NOT RUN {
quandldata = Quandl("NSE/OIL", collapse="monthly", start_date="2013-01-01", type="ts")
plot(quandldata[,1])
# }

Run the code above in your browser using DataCamp Workspace