Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: Returning a time series to .net using r packages xts or zoo.

$
0
0
I am trying to call a function in R that can return a time series as tx, xts, or zoo format. In all cases, r.net does not return the dates. It will only return the stock prices.

The following code returns null

command = "IndexValues <- Quandl(\"EOD/SPY\", authcode=\"myauthcode\", start_date=\"2014-01-01\", type = \"xts\")",
DataFrame df = rEngine.Evaluate(command).AsDataFrame(); // returns null
var t1 = rEngine.GetSymbol("IndexValues").AsDataFrame(); // returns null

If I change the type to "zoo", or "raw" or "ts", they all return null. If I cast to a list, it will return the stock prices without dates.

Any ideas?

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>