2D Array double[,] to dataframe?

Apr 13, 2015 at 5:39 PM
Edited Apr 13, 2015 at 5:41 PM
Hello,

I am currently pulling data using C# from various sources to create a 2d array of doubles.
I am then exporting that array as a CSV then importing it to R using read table.
I was wondering (hoping) there would be a faster way to do this?
Perhaps a way to go directly from the 2d array to the R engine?
I tried the Engine.SetSymbol("data", Engine.CreateDataFrame(MyArray)) but it throws an error saying the best overload method has invalid arguments.

Any help is much appreciated!
Apr 13, 2015 at 11:11 PM
I think you want to create a numeric matrix to pass in. That's a 2d array. A vector is a single dimensional array. Sent from my iPhone