Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120607/ee38e075/attachment.pl>
On 06/08/2012 12:43 AM, David Studer wrote:> Could anyone please tell me what is the most elegant > way to divide an ordinal variable in equal groups? (as > cut() does with continous variables) > > for example I'd like to have the factor "educational level" > in three groups "low" "medium" and "high"Hi David, Sounds like quantile(educational_level,probs=seq(0,1,length.out=3)) to me. Jim