Skip to content
Back to formatted view

Raw Message

Message-ID: <1115a2b005032505114974e0cb@mail.gmail.com>
Date: 2005-03-25T13:11:19Z
From: Wensui Liu
Subject: newbie's question about dataframe

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.