A package is a collection of functions, data and documentation that extends R's basic functionality.
install.packages("devtools") library(devtools) install_github("quandl/quandl-r") library(Quandl)
The Quandl R package is free. If you would like to make more than 50 calls a day, however, you will need to create a free account and set your API key.
Similarly, you must set your API key to download the premium datasets to which you are subscribed.
- Create or sign into your account here.
- Input your API key (with quotation marks) into the console:
The supported return types for the
Quandl() function are:
To request a specific type, assign the type argument and the return type.
data <- Quandl('NSE/OIL', type = "xts")
zoo, xts, and ts have their own time-series date formats.
data <- Quandl('NSE/OIL', collapse = "quarterly", type = "zoo", limit = 3)
data will have indexes
2016 Q4, and
NOTE: For conciseness, only three data columns appear in the above example response.
Updated about 2 months ago