[R] trimming a factor

2006-03-10 Thread Dan Chan
Hi, I have the following dataframe. The County Column has many empty spaces at the end. I want to cut out the empty space and put them back into the dataframe. How can this be done? head(DailyCounty) Date County GFCPer GFCEquip Acre nFires Date2 1 2001-01-04

Re: [R] trimming a factor

2006-03-10 Thread Sundar Dorai-Raj
Dan Chan wrote: Hi, I have the following dataframe. The County Column has many empty spaces at the end. I want to cut out the empty space and put them back into the dataframe. How can this be done? head(DailyCounty) Date County GFCPer GFCEquip

Re: [R] trimming a factor

2006-03-10 Thread Francisco J. Zagmutt
RSiteSearch(trim) or RSiteSearch(trim space) will get you there. Francisco From: Dan Chan [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Subject: [R] trimming a factor Date: Fri, 10 Mar 2006 15:52:03 -0500 Hi, I have the following dataframe. The County Column has many empty spaces at the end