Quandl | R Documentation |
Retrieves Data from the Quandl Dataset endpoint and formats
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, ... )
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. |
Set your api_key
with Quandl.api_key
function. For instructions on finding your api key go to https://www.quandl.com/account/profile.
Depending on the type the class is either data.frame, time series, xts, zoo or timeSeries.
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.
Quandl.api_key
## Not run: quandldata = Quandl("NSE/OIL", collapse="monthly", start_date="2013-01-01", type="ts") plot(quandldata[,1]) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.