Find rows in a dataframe with a certain date using subset
问题 I have a dataframe Date , containing dates , times and values: Date Time Global_active_power 16/12/2006 17:24:00 4.216 16/12/2006 18:25:00 4.5 17/12/2006 17:25:00 4.52 18/12/2006 17:25:00 4.557 Now I want to find a row depending on the date - for example all rows with date > 16/12/2006. This is my code: Data$Date<- as.Date(Data$Date,"%dd%mm%yyyy" ) Data$Time<-strptime(Data$Time, "%h%m%s") print(class(Data$Date)) print(class(Data$Time)) Data1<-subset(Data, (Date=="16/12/2006" )) View(Data1)