quandl / quandl-r

This is Quandl's R Package
https://cran.r-project.org/web/packages/Quandl/
Other
139 stars 55 forks source link

Time series #25

Closed jar1karp closed 9 years ago

jar1karp commented 9 years ago

Hi,

This patch add support for downloading data from Quandl as timeSeries class. Obviously the conversion is rather trivial, but I think it would be useful nevertheless. I tend to use Rmetrics packages quite often and those prefer timeSeries data.

There was some problem with the unit tests, in the search test the returned list has zero length. The for loop would traverse the indices from 1 to 0 which causes an indexing error. I added a check to avoid that case so the test cases should all pass now.

dmpe commented 9 years ago

:+1: Very nice, indeed cc /@RaymondMcT Please, dont forget to upload the new version to CRAN. Thanks!

RaymondMcT commented 9 years ago

I've merged into develop and will push to Master with other updates. Thank you for this!