pull.tbl_sql | R Documentation |
This is a method for the dplyr pull()
generic. It evaluates the query
retrieving just the specified column.
## S3 method for class 'tbl_sql'
pull(.data, var = -1, name = NULL, ...)
.data |
A lazy data frame backed by a database query. |
var |
A variable specified as:
The default returns the last column (on the assumption that's the column you've created most recently). This argument is taken by expression and supports quasiquotation (you can unquote column names and column locations). |
name |
An optional parameter that specifies the column to be used
as names for a named vector. Specified in a similar manner as |
... |
< |
A vector of data.
library(dplyr, warn.conflicts = FALSE)
db <- memdb_frame(x = 1:5, y = 5:1)
db %>%
mutate(z = x + y * 2) %>%
pull()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.