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

Commented Unassigned: R.NET Dataframe not handling POSIXlt properly [178]

$
0
0
Hi
One of my R dataframe column is of type "POSIXlt".
I am loading this R dataframe in R.NET's Dataframe object like following :

In R (instance created using R.NET):
----------------------------------------
mydataset = # some R dataframe that has, say fourth column of type POSIXlt. And there are more than 11 rows in the dataframe.

In C#
------
DataFrame DF = engine.GetSymbol("mydataset").AsDataFrame();

Now, when I try to access value of the row index greater than 11 and col index (that is of type POSIXlt), I get ArgumentOutOfRangeException ( as if that particular index doesn't exists ).

//now if I try to access 4th column of row index greater than 11, I get exeception
object data = DF[12,4];


Thanks,

Comments: I recommend you work around this by converting your POSIXlt to POSIXct in R before you access it from R.NET. Nothing wrong with using POSIXlt, but indeed R.NET _probably_ does not handle this yet out of the box. This is indeed a valid feature request.

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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