[R] newbie's question about dataframe

Wensui Liu liuwensui at gmail.com
Fri Mar 25 14:11:19 CET 2005


I have a dataframe containing X and Y. Right now, I want to create
another variable in the dataframe, named Z, such that for Z = 1 for
the top 10 largest value of Y and Z = 0 for the rest values of Y.

I really appreciate your help. Have a great weekend.




More information about the R-help mailing list