Hello, I am trying to run this code chunk to remove any variables with "HQ QR" value or a value of 0.
q4_2016_v2 <- q4_2016[!(q4_2016$start_station_name == "HQ QR" | q4_2016$ride_length < 0),]
glimpse(q4_2016_v2)
But when I run it, I receive a dataset without any rows, only columns. The glimpse reveals this:
Rows: 0
Columns: 19
$ ride_id <chr>
$ started_at <dttm>
$ ended_at <dttm>
$ rideable_type <chr>
$ tripduration <int>
$ start_station_id <int>
$ start_station_name <chr>
$ end_station_id <int>
$ end_station_name <chr>
$ member_casual <chr>
$ start_date <chr>
$ start_time <chr>
$ end_date <chr>
$ end_time <chr>
$ date <date>
$ month <chr>
$ day <chr>
$ year <chr>
$ day_of_week <chr>
Do I need to use filter to fix this, or is it something else? Thanks