View source: R/join_controller.R
build_join_plan | R Documentation |
Please see vignette('DependencySorting', package = 'rquery')
and vignette('joinController', package= 'rquery')
for more details.
build_join_plan(tDesc, ..., check = TRUE)
tDesc |
description of tables from |
... |
force later arguments to bind by name. |
check |
logical, if TRUE check the join plan for consistency. |
detailed column join plan (appropriate for editing)
describe_tables
, inspect_join_plan
, graph_join_plan
, actualize_join_plan
if (requireNamespace("DBI", quietly = TRUE) && requireNamespace("RSQLite", quietly = TRUE)) {
my_db <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")
d <- data.frame(id=1:3, weight= c(200, 140, 98))
DBI::dbWriteTable(my_db,"d1", d)
DBI::dbWriteTable(my_db,"d2", d)
tDesc <- describe_tables(my_db, c("d1", "d2"))
tDesc$keys[[1]] <- list(PrimaryKey= 'id')
tDesc$keys[[2]] <- list(PrimaryKey= 'id')
print(build_join_plan(tDesc))
DBI::dbDisconnect(my_db)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.