2012-04-23 28 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 
相關問題