Re: [R] How to eliminate perticular date

2008-05-11 Thread ajay ohri
Why dont you use the rattle GUI for data selection ? Regards, Ajay On Mon, May 12, 2008 at 6:24 AM, Roslina Zakaria <[EMAIL PROTECTED]> wrote: > Hi R-expert, > I try to eliminate 29 Feb but I got an error message below: > feb_data1 <- Pooraka_data[Pooraka_data$Month=="2",] > feb_28days <- feb_d

Re: [R] How to eliminate perticular date

2008-05-11 Thread jim holtman
What you are getting back in 'feb_no_29' is a data frame which can not be used for indexing. Do 'str(feb_no_29)' and see what you set. What you probably want to do is to use 'which' to find out which rows match the criteria and then delete them: feb_29 <- which((Pooraka_data$Month == "2") & (Poo

[R] How to eliminate perticular date

2008-05-11 Thread Roslina Zakaria
Hi R-expert, I try to eliminate 29 Feb but I got an error message below: feb_data1 <- Pooraka_data[Pooraka_data$Month=="2",] feb_28days <- feb_data1 [feb_data1$Day=="28",] feb_29days <- feb_data1 [feb_data1$Day=="29",] ## delete 29 Feb feb_no_29 <- feb_data1 [-(feb_29days),] feb_no_29 <- feb_data1