2012-04-23 29 views

回答

7

您是否试过table(dfUL)

+0

不,我解决了这个问题......对于问这样一个愚蠢的问题,我感到非常不好。谢谢。 – vonHippie 2012-04-23 11:48:30

+3

@vonHippie“有没有愚蠢的问题,只是愚蠢的答案。” PS记得接受答案。 – 2012-04-23 14:03:40

1

另一个可能有用的方法是match()函数。

match(x,dfUL$somecol) #Where x is the value in somecol you are looking for 
match(max(dfUL$somecol),dfUL) #Returns the row with the maximum value of somecol 
相关问题