Skip to content

Commit

Permalink
fix missing vehicle column in cars database
Browse files Browse the repository at this point in the history
  • Loading branch information
silberzwiebel committed Apr 24, 2018
1 parent 8762bc3 commit 766f01c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/02_bikes_to_db.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dbWriteTable(con, "bikes", bikes, row.names = F, overwrite = T)
dbExecute(con, "CREATE INDEX timestamp_bikes on bikes (date, hour)")

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

weather_from_bikes <-
bikes %>%
Expand Down

0 comments on commit 766f01c

Please sign in to comment.