[R] cut and factor

Gabor Grothendieck ggrothendieck at myway.com
Mon Mar 29 22:16:39 CEST 2004


Oleg Bartunov <oleg <at> sai.msu.su> writes:

> I want to keep indexes
> of original data, but replace original data with $mids of corresponding
> $breaks.


Note the label= arg on cut:

cut(z,t$breaks,lab=t$mids)




More information about the R-help mailing list