View source: R/step-subset-select.R
select.dtplyr_step | R Documentation |
This is a method for the dplyr select()
generic. It is translated to
the j
argument of [.data.table
.
## S3 method for class 'dtplyr_step'
select(.data, ...)
.data |
A |
... |
< |
library(dplyr, warn.conflicts = FALSE)
dt <- lazy_dt(data.frame(x1 = 1, x2 = 2, y1 = 3, y2 = 4))
dt %>% select(starts_with("x"))
dt %>% select(ends_with("2"))
dt %>% select(z1 = x1, z2 = x2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.