Skip to content

Commit 766f01c

Browse files
committed
fix missing vehicle column in cars database
1 parent 8762bc3 commit 766f01c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/02_bikes_to_db.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dbWriteTable(con, "bikes", bikes, row.names = F, overwrite = T)
3333
dbExecute(con, "CREATE INDEX timestamp_bikes on bikes (date, hour)")
3434

3535
# add the same weather to cars table
36-
cars <- dbGetQuery(conn = con, "SELECT location, count, date, hour FROM cars")
36+
cars <- dbGetQuery(conn = con, "SELECT location, count, date, hour, vehicle FROM cars")
3737

3838
weather_from_bikes <-
3939
bikes %>%

0 commit comments

Comments
 (0)