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

Closed Unassigned: StackOverFlow Exception While calling a R Script File [85]

$
0
0
Hi All,

Can any one help he how to handle a large csv file processing for calculation

I took a CSV file with 10 Lakh records

Loaded in to a R using the following syntax
fw<-read.csv("filename",header=T,sep=';')

when I ran it in Console
worked fine

i wrote a Summary(fw)

gave me a good output


created a Function in R and saved it
Function:
function(x)
{
f<-read.csv(x,header=T,sep=';')
return summary(f(1))
}

but now when i called my function from C#
it resulted me a StackOverFlowException

MY Code for calling Function
engine.Initialize();
engine.Evaluate("load('MyFuntion.R')");
var tt = engine.Evaluate("TestRdotnet.AcceptCSVandSummarize('C:\\Users\\chaturvedibkdp\\Documents\\Test.csv')");

error in attachment

Please Help me out


Viewing all articles
Browse latest Browse all 1634

Trending Articles



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