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: Hi jperraud, Thanks for the workaround. I tried POSIXct in the past and found it working. So, workaround should also work. My requirement was to directly deal with POSIXlt but for now I think I have to handle this differently. By the way, I tried one version higher than the version I am using (R.NET version 1.5.16.30632 ) and found some performance issue while loading the dataset. I am not 100% sure, it was long time back. So decided to stick to the older version. I will give it a one more try when I have enough time. Thanks & Regards, adabral
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: Hi jperraud, Thanks for the workaround. I tried POSIXct in the past and found it working. So, workaround should also work. My requirement was to directly deal with POSIXlt but for now I think I have to handle this differently. By the way, I tried one version higher than the version I am using (R.NET version 1.5.16.30632 ) and found some performance issue while loading the dataset. I am not 100% sure, it was long time back. So decided to stick to the older version. I will give it a one more try when I have enough time. Thanks & Regards, adabral