View source: R/column_references.R
column_references | R Documentation |
Returns a character vector containing all the column references
in the clauses of a parsed SQL SELECT
statement
column_references(tree, from = TRUE)
tree |
a list returned by |
from |
a logical value indicating whether to include the column
references from the join conditions in the |
The returned character vector includes only column
references, not table references. Column aliases assigned in the
SELECT
list are not included unless they are used in other clauses.
A character vector containing all the unique column references found
in the SELECT
, FROM
(if from = TRUE
), WHERE
,
GROUP BY
, HAVING
, and ORDER BY
clauses of the
SELECT
statement
parse_query
my_query <- "SELECT f.flight, manufacturer, p.model FROM flights f JOIN planes p USING (tailnum);" column_references(parse_query(my_query), from = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.