Closed sonderak closed 9 years ago
Doing this generically is tricky, but in general, when you have an R value like temp
, you can either call:
temp.Value
temp.GetValue<Frame<string, string>>()
The first one gives you obj
which is Frame<R, C>
and you could use reflection on this to find out what is the row/column key. The second one gives you a frame of a specified type.
Hello! I am trying to read a dataframe from the Rdotnet environment in C# into Deedle.Frame without having to be specific about Types TRowKey and TColumnKey, since dynamically I may not know the types.
I tried
In order to convert this to Frame, I tried -
But this does not work since the GenericArguments() are not available. Could you please suggest a way to achieve this without having to sort to using specific Deedle.Rplugin classes like DataFrameStringStringFromR, DataFrameIntStringFromR etc... ?
Eventually I would like to show the R dataframe in a datagridview.
Thank you.