[R] Date in dataframe manipulation

2006-03-24 Thread Dan Chan
Hi, I have a dataframe with many columns, including date and I want to keep only a few of the columns including date column. I used the following command: with(FireDataAppling, cbind(STARTDATE, County, TOTAL, CAUSE) It works, but the date becomes days from Jan 1, 2001. FireDataAppling$STARTD

Re: [R] Date in dataframe manipulation

2006-03-24 Thread Don MacQueen
Try FireDataAppling[,c('STARTDATE','County','TOTAL','CAUSE')] or perhaps the subset() function. The way you are doing it is more complex than necessary (internally complex, I mean, not how the code looks). -Don At 3:29 PM -0500 3/24/06, Dan Chan wrote: >Hi, > >I have a dataframe with many

Re: [R] Date in dataframe manipulation

2006-03-24 Thread Marc Schwartz (via MN)
On Fri, 2006-03-24 at 15:29 -0500, Dan Chan wrote: > Hi, > > I have a dataframe with many columns, including date and I want to keep > only a few of the columns including date column. > > I used the following command: > with(FireDataAppling, cbind(STARTDATE, County, TOTAL, CAUSE) > > It works,

Re: [R] Date in dataframe manipulation

2006-03-27 Thread Dan Chan
DATE) Thank you! Daniel Chan -Original Message- From: Marc Schwartz (via MN) [mailto:[EMAIL PROTECTED] Sent: Friday, March 24, 2006 9:22 PM To: Dan Chan Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Date in dataframe manipulation On Fri, 2006-03-24 at 15:29 -0500, Dan Chan wrote: > Hi, >