Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: VB.NET Help

$
0
0
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

engine.GetSymbol("frm").AsDataFrame()

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!

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>