Gustaf Rydevik wrote:
Hi Leon,
unique(x)
or
duplicated(x)
should work, depending on what you want.
Best,
Gustaf
Hi,
Thank you all. Actually, I have a data frame or matrix, whose first
column is numerical values, and whose 2nd column is names. I need those
whose names repeated 3 times and get the mean of the 3 values for each
repeated names.
It sounds that I need some programming work.
Regards,
Leon
______________________________________________
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.