fu_neng [quote]引用第1楼bjt于2007-08-05 19:56发表的“”: ?duplicated[/quote] 不错, duplicated可以对vector 查找相同的对, 不过dataframe也被它自动转化为vector来查找相同的而混乱了, 有什么办法可以查找相同的两行? 另外btj你有R函数用法手册吗?很多时候想要实现某种功能,但就难知道这种功能对应哪个函数。
bjt It is bjt If you want to remove the duplicate elements ,you can use "unique". R reference card? http://cos.name/bbs/read.php?tid=2083
leffgh 面临和你同样的问题, 我的方法是用paste把gx,gy粘起来,作为一列放上去,叫做a 然后 table(data.frame$a)可以看到哪个(gx,gy)有重叠, 比如(0.6,0.2)有重叠,再回去查data.frame里,哪行的a 是0.6,0.2的 我看了一下,有一万多个gx.gy是重叠的~~~