Re: [R] quantcut

2008-11-03 Thread Prof Brian Ripley
On Mon, 3 Nov 2008, Kåre Edvardsen wrote: I'm trying to devide x into tertiles, but ends up with integer limits even x holds one decimal. The analysis is extremely sensitive to the Do you mean integer character representations in the labels? See ?cut and argument 'dig.lab'. What you actuall

[R] quantcut

2008-11-03 Thread Kåre Edvardsen
I'm trying to devide x into tertiles, but ends up with integer limits even x holds one decimal. The analysis is extremely sensitive to the limits and I like to keep them right. How can that be done? quartiles <- quantcut( x[x >= 0], q=seq(0,1, by=(1/3)) > table(quartiles) quartiles [180,344] (344,