[R] pairwise comparisons

Roger D. Peng rpeng at jhsph.edu
Wed Sep 8 02:36:56 CEST 2004


Are you talking about repeated rows?  Does unique() do what you want?

-roger

Rebecca Young wrote:

> Hello,
> 
> I am a new R user.  I am trying to calculate vector correlations for all
> pairwise comparisons in my data frame without repeats.  I am familiar with the
> expand.grid function, but this includes repeats.  Is there a way to use
> expand.grid and eliminate repeats?  Or is there another function that can be
> used to do this?
> 
> Thank you.
> Rebecca
> 
> 
> --
> Rebecca Young
> Graduate Student
> Ecology & Evolutionary Biology, Badyaev Lab
> University of Arizona
> 1041 E Lowell
> Tucson, AZ 85721-0088
> Office: 425BSW
> rlyoung at email.arizona.edu
> (520) 621-4005
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list