Created
August 6, 2020 03:25
-
-
Save Veenap/f887f4a96b6e0590b6e156b27c609fb5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import library | |
library(bigrquery) | |
#Your project ID here | |
project_id <- "your-project-id" # Your project ID goes here | |
#Sample query | |
sql_string <- "SELECT * FROM dataset.my_table LIMIT 1000" | |
#Execute the query and storing the result | |
query_results <- query_exec(sql_string, project = project_id, useLegacySql = FALSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment