Problem converting NumericVector to Double[] under VB.NET

Jan 30, 2011 at 1:14 PM

Hi Kosei,

 

got a problem converting NumericVector to Double() under VB.NET.

Code below produces an exception "NumericVector can't be converted to System.Double[]".

Maybe you know some hints?

 

Thanks a lot,

Dirk

 

 

Dim test As Double()

Engine.EagerEvaluate("a<-c(1,2,2)")

test = Engine.GetSymbol("a").AsNumeric()

 

Coordinator
Jan 31, 2011 at 4:51 AM

Hi Dirk,

 

LINQ ToArray method is available. CopyTo method in R.NET Vector class is also good.

 

Thanks,

Kosei.