Look at the plyr package, probably the ddply function in that package.  You
can write your own function to do whatever you want on the pieces of the
split apart object.  Correlation between a specified pair of columns would
be simple.


On Thu, Jun 27, 2013 at 11:26 AM, Jannis <bt_jan...@yahoo.de> wrote:

> Dear List members,
>
>
> i am seeking a multivariate version of aggregate. I want to compute, fro
> example the correlation between subsets of two vectors. In aggregate, i can
> only supply one vector with indices for subsets. Is  there ready function
> for this or do i need to program my own?
>
>
> Cheers
> Jannis
>
> ______________________________**________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
> PLEASE do read the posting guide http://www.R-project.org/**
> posting-guide.html <http://www.R-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Gregory (Greg) L. Snow Ph.D.
538...@gmail.com

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to