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 Skyguy94, Please find attached C# project example. The sample is self explanatory. There are comments in source code too. In 'bin\Debug' folder of this project there is a 'testdate.csv' file that I am trying to read. This file should be automatically picked but in case there is an issue then modify the path in source code to locate this CSV file. I am using R.NET version 1.5.16.30632 Hope, I am not missing anything here. 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 Skyguy94, Please find attached C# project example. The sample is self explanatory. There are comments in source code too. In 'bin\Debug' folder of this project there is a 'testdate.csv' file that I am trying to read. This file should be automatically picked but in case there is an issue then modify the path in source code to locate this CSV file. I am using R.NET version 1.5.16.30632 Hope, I am not missing anything here. Regards, adabral