aou_connect | R Documentation |
Connects to the All of Us database and returns a BigQueryConnection object. You can reference this object to query the database using R and or SQL code. A message is printed with the connection status (successful or not).
aou_connect(CDR = getOption("aou.default.cdr"), ...)
CDR |
The name of the "curated data repository" to connect to. Defaults
to |
... |
Further arguments passed along to |
You can reference this object to connect to the All of Us database
and run SQL code using, e.g., dbplyr
or DBI
. A message is printed with
the connection status (successful or not).
A BigQueryConnection
object. This object is also saved as an option
(getOption("aou.default.con")
).
con <- aou_connect()
# reference the observation table in the database
dplyr::tbl(con, "observation")
# print a list of the tables in the database
DBI::dbListTables(con)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.