Re: [R] Data replacement

2010-01-05 Thread Lisa
Thank you for your kind help. Your R script works well. Lisa Dieter Menne wrote: > > > > Lisa wrote: >> >> I have a dataset that looks like this: >> >>> data >> idcode1code2 >> 1 114 >> 2 123 >> 3 24

Re: [R] Data replacement

2010-01-05 Thread Dieter Menne
Lisa wrote: > > I have a dataset that looks like this: > >> data > idcode1code2 > 1 114 > 2 123 > 3 244 > .. > > I want to change some numbers in the columns of “code1” and “code2” based > on “indx”

[R] Data replacement

2010-01-05 Thread Lisa
Dear all, I have a question and need your help. I have a dataset that looks like this: > data idcode1code2 1 114 2 123 3 244 4 315 5 324 6 4