[R] how to assign factor level into each value

2012-12-05 Thread Tammy Ma
HI, All I met the following problem. I dont know how to handle it. Country Price 1 CN 44.25 2 CN 21.07 3 CN 92.70 4 CN 47.41 5 CN

Re: [R] how to assign factor level into each value

2012-12-05 Thread Jorge I Velez
Hi Tammy, Check ?cut and its examples. HTH, Jorge.- On Wed, Dec 5, 2012 at 11:26 PM, Tammy Ma wrote: HI, All I met the following problem. I dont know how to handle it. Country Price 1 CN 44.25 2 CN

Re: [R] how to assign factor level into each value

2012-12-05 Thread jim holtman
?cut x - read.table(text = Country Price + 1 CN 44.25 + 2 CN 21.07 + 3 CN 92.70 + 4 CN 47.41 + 5 CN111.67 + 6 CN