Re: [R] cut and factor

2004-03-29 Thread Oleg Bartunov
Eric, thanks for quick reply. at first look I thought it is what I need, but, unfortunately, it doesn't applied to original data - it creates new data with loosing original indexes ! I want to keep indexes of original data, but replace original data with $mids of corresponding $breaks. So, if I

Re: [R] cut and factor

2004-03-29 Thread Gabor Grothendieck
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) __ [EMAIL PROTECTED] mailing list

Re: [R] cut and factor

2004-03-29 Thread Achim Zeileis
On Tue, 30 Mar 2004 00:06:39 +0400 (MSD) Oleg Bartunov wrote: Eric, thanks for quick reply. at first look I thought it is what I need, but, unfortunately, it doesn't applied to original data - it creates new data with loosing original indexes ! I want to keep indexes of original data, but

Re: [R] cut and factor

2004-03-29 Thread Oleg Bartunov
On Mon, 29 Mar 2004, Achim Zeileis wrote: On Tue, 30 Mar 2004 00:06:39 +0400 (MSD) Oleg Bartunov wrote: Eric, thanks for quick reply. at first look I thought it is what I need, but, unfortunately, it doesn't applied to original data - it creates new data with loosing original indexes