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

New Post: Calling an R function in script

$
0
0
Hi,

I'd like to get an answer to the original question - if I have a function defined in a file, how do I execute it from c#?

var f = engine.Evaluate("USE SCRIPT FROM FILE").AsFunction();

var result = f.Invoke().AsDataFrame();

I've tried OP's approach of using source(...) but that throws ' Value does not fall within the expected range.' error trying to evaluate.


Thank you,

Eugene

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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