1

I m developing a web application using D3.js now and it requires some statistical techniques. I know there are excellent R packages out that has implemented the techniques I need nicely. My question is, how can I use the R Package inside my JavaScript code? I mean to call the R functions directly from my JavaScript code.

Thanks in advance.

ice
  • 47
  • 1
  • 8
  • Have you checked this library? http://www.jstat.org/. Maybe that helps. – elclanrs Jul 24 '13 at 00:16
  • I did, but I need to do projection pursuit and jstat doesn't have it. The best package I found that has PP implemented is an R package, not even matlab. – ice Jul 24 '13 at 00:20
  • It seems you are using **D3.js** on the server side, or else how can you make the JavaScript code call R from browser? If the former is really what you target, then refer to [this SO question](http://stackoverflow.com/questions/5321884/how-do-i-run-the-system-commands-in-javascript) for using R as your analysis engine. – lcn Jul 24 '13 at 21:16

0 Answers0