View source: R/step-colorder-relocate.R
relocate.dtplyr_step | R Documentation |
This is a method for the dplyr relocate()
generic. It is translated to
the j
argument of [.data.table
.
## S3 method for class 'dtplyr_step'
relocate(.data, ..., .before = NULL, .after = NULL)
.data |
A |
... |
< |
.before, .after |
< |
library(dplyr, warn.conflicts = FALSE)
dt <- lazy_dt(data.frame(x = 1, y = 2, z = 3))
dt %>% relocate(z)
dt %>% relocate(y, .before = x)
dt %>% relocate(y, .after = y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.