[R] How to eliminate perticular date

Roslina Zakaria zroslina at yahoo.com
Mon May 12 02:54:03 CEST 2008


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 [-(feb_29days),]
Error in xj[i] : invalid subscript type 'list'
Thank you so much for your attention.


      ____________________________________________________________________________________

[[elided Yahoo spam]]



More information about the R-help mailing list