I have a data frame having date as column along with other columns. I want to use data only between 2007-02-01 and 2007-02-02. Data frame name is hpc. I am using below command which is only giving headers when executed:
myhpc1 <- subset(hpc, Date >= "2007-02-01" & Date <= "2007-02-02")
myhpc1
A tibble: 0 × 9
... with 9 variables: Date , Time
Global_reactive_power , Voltage , Global_intensity ,
I have a data frame having date as column along with other columns. I want to use data only between 2007-02-01 and 2007-02-02. Data frame name is hpc. I am using below command which is only giving headers when executed:
myhpc1 <- subset(hpc, Date >= "2007-02-01" & Date <= "2007-02-02")