Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby statistical gem

What Ruby gems are there that can perform data processing?

like image 637
vrish88 Avatar asked Aug 04 '10 14:08

vrish88


2 Answers

There are 3 ways that I know of to access R from Ruby:

  • RinRuby
  • RSRuby
  • Rserve through the Rserve-Ruby-Client

RinRuby is the slowest, RSRuby is the fastest and Rserve is closer to RSRuby in performance. RSRuby however is quite platform specific and you need to compile R with the sharelib option. Rserve-Ruby-Client is easier in that aspect since Rserve provides a TCP socket server for you to send commands to R interpreter.

AFAIK all 3 are unfortunately not as well documented for beginners. Rserve-Ruby-Client is pretty active, the other 2 are less so.

like image 149
Sau Sheong Avatar answered Sep 25 '22 07:09

Sau Sheong


Srikant is probably right that this would get better answers at stack overflow, but here's a quick answer anyway:

  • Rubygsl provides an interface to the GNU Scientific Library.

  • RSRuby provides a way to invoke R commands through Ruby

like image 43
chrisamiller Avatar answered Sep 22 '22 07:09

chrisamiller