Skip to content
Back to formatted view

Raw Message

Message-ID: <CACxE24=AsQoD_wczYXAgWqQCVUoSryhbj5UVxoDhvcEtN7uHGA@mail.gmail.com>
Date: 2011-12-08T03:15:05Z
From: Erin Hodgess
Subject: a weird "cut" question

Dear R People:

I have the following data:

> ail.df[,1]
[1] 47677 47602 47678 47905 47909 47906 47605 47673 47607
> cut(ail.df[,1],breaks=3)
[1] (4.76e+04,4.77e+04] (4.76e+04,4.77e+04] (4.76e+04,4.77e+04]
[4] (4.78e+04,4.79e+04] (4.78e+04,4.79e+04] (4.78e+04,4.79e+04]
[7] (4.76e+04,4.77e+04] (4.76e+04,4.77e+04] (4.76e+04,4.77e+04]
Levels: (4.76e+04,4.77e+04] (4.77e+04,4.78e+04] (4.78e+04,4.79e+04]
>
so I have cut ail.df[,1] into 3 levels.  However, the second level
never appears in the data set.

Is there a way to set cut such that every level appears, please?

thanks in advance,
Sincerely,
Erin


-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com