lightoverhead has asked for the wisdom of the Perl Monks concerning the following question:

Monks:

I have a question regarding manipulating a matrix or data frame.

I know manipulating a matrix/data frame in R is pretty easy.

You can index it, subset it, aggregate it by certain categories, get the row/column number and names.

You can also apply function to each row or column.

If you know R, you may know the functions, such as:

subset

with

aggregate

transform

and etc

since, we generally need to apply statistic calculations on a subset of matrix/data frame;we may need some statistical functions/package associated to this package as well

In fact, I want a set of functions which are equivalent to those in R, does anyone know such a package?

Thank you

  • Comment on Can someone suggest a package with functions of manipulating matrix or data frame as the functions were applied in R?

Replies are listed 'Best First'.
Re: Can someone suggest a package with functions of manipulating matrix or data frame as the functions were applied in R?
by educated_foo (Vicar) on Feb 07, 2012 at 22:00 UTC
    PDL has most of these features, though it has its own idiosyncratic take (as do Matlab and R).
Re: Can someone suggest a package with functions of manipulating matrix or data frame as the functions were applied in R?
by ww (Archbishop) on Feb 07, 2012 at 22:14 UTC
      thank you for your comprehensive list.
Re: Can someone suggest a package with functions of manipulating matrix or data frame as the functions were applied in R?
by perlStuck (Sexton) on Feb 07, 2012 at 21:48 UTC
Re: Can someone suggest a package with functions of manipulating matrix or data frame as the functions were applied in R?
by zentara (Cardinal) on Feb 08, 2012 at 17:48 UTC
Re: Can someone suggest a package with functions of manipulating matrix or data frame as the functions were applied in R?
by pvaldes (Chaplain) on Feb 08, 2012 at 17:03 UTC

    If you feel comfortable with R, simply use it...

    use Statistics::R;

      The reason I use perl instead of R is that I try to implement a web application

      From perl to call R is tedious and slow;therefore,I try to solve all the calculations and plots in perl

      All the monks,above and below have suggested a variety of tools. I'll try to use them, especially PDL

      Thank you all