Quandl: Retrieves Data from the Quandl Dataset endpoint and formats

Description Usage Arguments Details Value References See Also Examples

View source: R/Quandl.R

Description

Retrieves Data from the Quandl Dataset endpoint and formats

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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.

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.

Value

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

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

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

## End(Not run)

Quandl documentation built on Aug. 11, 2021, 5:07 p.m.