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
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 >