Skip to content
Prev 308233 / 398506 Next

cut2 error

On Oct 17, 2012, at 12:42 PM, Charles Determan Jr wrote:

            
It's not n error message. You got a factor result. Only a warning.  
What did you expect when you asked for quartiles in a sample that was  
distributed as:

 > table(dat[1])

96 97 98 99
  2  9 39 29

 > quantile(dat[1], prob=(1:3)/4, na.rm=TRUE)
25% 50% 75%
  98  98  99