阅读背景:

R - 使用apply比较以前的行

来源:互联网 

So I have a dataframe from which I'd like to pull out rows that have the same name in column 2. For each set of duplicated rows with the same name, I'd then like to keep only the row with the highest value if it's score is 2 greater than the other duplicates. So in this example, I want to keep row 2 but not row 5. So I have a dataframe from which I'd like to pu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: