swirldev / swirl

:cyclone: Learn R, in R.
http://swirlstats.com
Other
1.14k stars 599 forks source link

susetting data from data frame is giving error #588

Open mahimanarain opened 7 years ago

mahimanarain commented 7 years ago

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 ,

Sub_metering_1 , Sub_metering_2 , Sub_metering_3

seankross commented 7 years ago

@mahimanarain which swirl course and lesson does this pertain to?