make_join | R Documentation |
Create a StmtJoin instance.
make_join(
field1,
table1,
field2,
table2 = NULL,
type = c("inner", "left", "right", "full")
)
field1 |
The first field on which to join. |
table1 |
The table name of the first field. |
field2 |
The second field on which to join. |
table2 |
The table name of the second field (optional). |
type |
The type of join to perform. One of "inner", "left", "right", or "full". Defaults to "inner". |
An instance of StmtJoin.
# To generate a JOIN statement joining the "author_id" field of the "books"
# table with the "id" field of the "authors" table:
join <- make_join("author_id", "books", "id", "authors")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.