What is the recommended R interface for Perl integration?

I have never worked on R, so I was wondering if anyone could recommend (either from personal experience or for some reviews / comparisons) which of several Perl / R integration modules is considered “best practice”? Ideally, it can somehow qualify for production readiness.

Google shows several different modules, but I'm not quite sure how to evaluate the parameters, having zero previous R results or statistics (the question came from an employee who was interested in using R)

+5
source share
6 answers

Yes, it looks like Statistics :: R is probably the best choice. It has recently been updated, Brian Cassidy is a competent developer, and he is undergoing CPAN smoke tests.

There is also Statistics :: useR , it was touched relatively recently, but it does not seem to match the smoke CPAN testing system, which makes me a little nervous.

However, I have not used any of them.

+7
source

I personally have not used it, but Statistics::Rit looks interesting. He has received a 3 star review on CPAN ratings and is currently undergoing facelift with a new maintainer.

/ I3az /

+3
source

  • , R
  • , Perl
  • , : ""

..

Rserve R-, , Perl.

+2

R, Statistics:: R:: IO . Perl, RDS RData.

0.4, , Rserve.

+1

Statistics::NiceR. R, data.frame s.

, . :

#!/usr/bin/env perl
use v5.16;
use Statistics::NiceR;
use Data::Frame::Rlike;

my $r = Statistics::NiceR->new;
my $iris = $r->get('iris');

say "Subset of Iris data set";
say $iris->subset( sub { # like a SQL WHERE clause
                  ( $_->('Sepal.Length') > 6.0 )
                & ( $_->('Petal.Width')  < 2   )
        })->select_rows(0, 34); # grab the first and last rows

Subset of Iris data set
-----------------------------------------------------------------------
      Sepal.Length  Sepal.Width  Petal.Length  Petal.Width  Species
-----------------------------------------------------------------------
 51   7             3.2          4.7           1.4          versicolor
 147  6.3           2.5          5             1.9          virginica
-----------------------------------------------------------------------
+1
-1

All Articles