| select.tbl_lazy | R Documentation | 
These are methods for the dplyr dplyr::select(), dplyr::rename(), and dplyr::relocate()
generics. They generate the SELECT clause of the SQL query.
These functions do not support predicate functions, i.e. you can
not use where(is.numeric) to select all numeric variables.
## S3 method for class 'tbl_lazy'
select(.data, ...)
## S3 method for class 'tbl_lazy'
rename(.data, ...)
## S3 method for class 'tbl_lazy'
rename_with(.data, .fn, .cols = everything(), ...)
## S3 method for class 'tbl_lazy'
relocate(.data, ..., .before = NULL, .after = NULL)
.data | 
 A lazy data frame backed by a database query.  | 
... | 
 <  | 
.fn | 
 A function used to transform the selected   | 
.cols | 
 <  | 
.before, .after | 
 <  | 
library(dplyr, warn.conflicts = FALSE)
db <- memdb_frame(x = 1, y = 2, z = 3)
db %>% select(-y) %>% show_query()
db %>% relocate(z) %>% show_query()
db %>% rename(first = x, last = z) %>% show_query()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.