con <- DBI::dbConnect(
odbc::odbc(),
Driver = "postgresql",
Server = Sys.getenv("DB_SERVER"),
Port = "5432",
Database = "soleng",
UID = Sys.getenv("DB_USER"),
PWD = Sys.getenv("DB_PASSWORD"),
BoolsAsChar = "",
timeout = 10
)
bike_raw_data <- tbl(con,
DBI::Id(schema="content", name="bike_raw_data"))
glimpse(bike_raw_data)Rows: ??
Columns: 12
Database: postgres [soleng@localhost:/soleng]
$ station_id <chr> "53", "72", "91", "106", "349", "1", "2", "3…
$ num_bikes_available <dbl> 12, 9, 4, 15, 22, 13, 10, 5, 11, 6, 16, 9, 5…
$ num_ebikes_available <dbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
$ num_bikes_disabled <dbl> 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0,…
$ num_docks_available <dbl> 6, 10, 18, 20, 9, 2, 1, 12, 0, 5, 3, 5, 14, …
$ num_docks_disabled <dbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
$ is_installed <dbl> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,…
$ is_renting <dbl> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,…
$ is_returning <dbl> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,…
$ last_reported <dbl> 1568996717, 1568996326, 1568996591, 15689965…
$ eightd_has_available_keys <lgl> FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FA…
$ time <dttm> 2019-09-20 16:25:54, 2019-09-20 16:25:54, 2…
bike_station_info <- tbl(con, DBI::Id(schema="content", name="bike_station_info"))
glimpse(bike_station_info)Rows: ??
Columns: 5
Database: postgres [soleng@localhost:/soleng]
$ station_id <chr> "ebbf6e18-684d-4fc9-ad4d-c025b8d76556", "0825525a-1f3f-11…
$ name <chr> "Prince George's Plaza Metro", "15th & Euclid St NW", "Ro…
$ lat <dbl> 38.96574, 38.92333, 38.87691, 38.91261, 38.98469, 38.9040…
$ lon <dbl> -76.95480, -77.03520, -77.19585, -77.07432, -77.09454, -7…
$ last_updated <dttm> 2026-06-06 23:53:52, 2026-06-06 23:53:52, 2026-06-06 23:…