Description Overview Note Author(s) See Also
A DBI extension for querying and parsing results from Google's BigQuery database.
Connect and authenticate with Google:
conn <- dbConnect(BigQuery(), username="bquser@gmail.com", password="pass")
Get table fields:
info <- dbListFields(conn, "bigquery/samples/shakespeare")
Send a query and if successful get results as data.frame:
result <- dbSendQuery(conn, "SELECT word FROM [bigquery/samples/shakespeare] WHERE word CONTAINS 'raisin'") if (result@success) fetch(result) else dbGetInfo(result, "error")
Get information about connection, results, etc.:
summary(BigQuery(), verbose=TRUE) summary(conn, verbose=TRUE) summary(result, verbose=TRUE) dbGetException(conn)
This package does not yet support data import or table deletion.
David Xiao <dxiao@csail.mit.edu>
dbDriver
dbConnect
dbDisconnect
dbSendQuery
dbGetQuery
fetch
dbClearResult
summary
dbGetInfo
dbColumnInfo
dbGetException
dbGetStatement
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.