Jul 16, 2012 at 6:16 PM
Edited Jul 16, 2012 at 6:17 PM
I got stuck in a problem and it would be great If someone of you could give me a hint.
I do some calculations with R via my .NET application and afterwards I like to transform parts of the results from the RDotNet classes to a system class.
Transforming a NumericVector is no problem, I can do it like this:
Dim value = Engine.Evaluate("a<-c(1,2,3,4,5,6,7)").AsNumeric().ToArray
and then value is a system.double array.
But now I like to transform a matrix and not only a vector, so I got something like this:
Dim value = Engine.Evaluate("R code in here...").AsNumericMatrix().????
But there is no possibility to use ToArray in this case... to obtain a 2-dimensional array.
Any idea or workaround how I can transform the NumericMatrix to a system.double( , )???
Thanks a lot in advance