Reputation: 21467
What Ruby gems are there that can perform data processing?
Upvotes: 13
Views: 6295
Reputation: 184
There are 3 ways that I know of to access R from Ruby:
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.
Upvotes: 9
Reputation: 11
DescriptiveStatistics adds methods to the Enumerable module to allow easy calculation of basic descriptive statistics of Numeric sample data in collections that have included Enumerable such as Array, Hash, Set, and Range. The statistics that can be calculated are:
Number
Sum
Mean
Median
Mode
Variance
Standard Deviation
Percentile
Percentile Rank
Descriptive Statistics
Quartiles
Upvotes: 0
Reputation: 1310
statsample appears to be the gem you are looking for. It has converters to and from various datasources and a suite of functions for statistical analysis.
Upvotes: 4
Reputation: 2722
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
Upvotes: 4