Jul 3, 2014 at 10:52 PM
Apologies if I'm missing something obvious, but I'm trying to create a dataframe object in VB.NET using getsymbol.

From the C# examples I see it works like


In VB.NET I don't have the AsDataFrame method, so all I can do is the following (I've checked and if I rerun the R stuff in R Studio, it works, so pred_df is definitely a data frame)

Dim objDf As Object = engine.GetSymbol("pred_df")

Which nets me an RDotNet.SymbolicExpression so I can then do

Dim test As RDotNet.SymbolicExpression = CType(objDf, RDotNet.SymbolicExpression)

But I can't get any data out of the RDotNet.SymbolicExpression.

I'd be very grateful if someone could put me out of my misery!