Browse Source

Use only src_sqlite in reading

master
Maxime Wack 2 years ago
parent
commit
29bf0adef2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      geoip.R

+ 1
- 1
geoip.R View File

@@ -3,7 +3,7 @@ library(leaflet)

src_sqlite("access.db") %>%
tbl("access") %>%
left_join(db %>% tbl("geoip")) %>%
left_join(src_sqlite("access.db") %>% tbl("geoip")) %>%
collect %>%
mutate(timestamp = timestamp %>% as.POSIXct(origin = "1970-01-01")) %>%
mutate_at(vars(city, country, agent), factor) -> geoaccess


Loading…
Cancel
Save