Removing rows containing specific dates in R
问题 Disclaimer: I am going to come out of this looking silly. I have a data frame containing a column which has a date of class POSIXct . I am trying to remove some of the rows containing specific dates- public holidays. I tried to do that using this: > modelset.nonholiday <- modelset[!modelset$date == as.POSIXct("2013-12-31")| !modelset$date ==as.POSIXct("2013-07-04") | !modelset$date == as.POSIXct("2014-07-04")| !modelset$date == as.POSIXct ("2013-11-28") | !modelset$date == as.POSIXct ("2013