Guest User

Untitled

a guest
Mar 28th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ibrary(dbplyr)
  2. library(dplyr.snowflakedb)
  3.  
  4. options(dplyr.jdbc.classpath = "~/Downloads/snowflake-jdbc-3.5.3.jar")
  5.  
  6. # Update with credentials
  7. snowflake_db <- src_snowflakedb(user = ""password = "", account = "ab123456", region = "us-east-1", opts = list(warehouse = "import", db = "cloudinary", schema = "public"))
  8.  
  9. benchmarks <- tbl(snowflake_db, in_schema("cto","lossy_benchmark_fast_v1_1"))
  10.  
  11. benchmarks %>%
  12. rename_all(tolower) %>%
  13. group_by(format) %>%
  14. summarize(n = n()) %>%
  15. kable()
Add Comment
Please, Sign In to add comment