View source: R/aou_temp_tables.R
aou_compute | R Documentation |
Computes a temporary table from a dplyr chain that returns an SQL query (e.g., tbl(con, table)) and returns the name of the temporary table. May be useful to create intermediate tables to reduce long queries. The temporary table will only exist for the current session and will nee to be created again a new session.
aou_compute(data, ..., con = getOption("aou.default.con"))
data |
A reference to an unexecuted remote query (e.g., the result of a
|
... |
Other arugments passed to |
con |
Connection to the allofus SQL database. Defaults to
|
A reference to a temporary table in the database.
con <- aou_connect()
tmp_tbl <- dplyr::tbl(con, "concept") %>%
dplyr::select(concept_id) %>%
head(10) %>%
aou_compute()
tmp_tbl
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.