relocate.duckplyr_df | R Documentation |
This is a method for the dplyr::relocate()
generic.
See "Fallbacks" section for differences in implementation.
Use relocate()
to change column positions,
using the same syntax as select()
to make it easy to move blocks of columns at once.
## S3 method for class 'duckplyr_df'
relocate(.data, ..., .before = NULL, .after = NULL)
.data |
A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details. |
... |
< |
.before , .after |
< |
There is no DuckDB translation in relocate.duckplyr_df()
with a selection that returns no columns.
These features fall back to dplyr::relocate()
, see vignette("fallback")
for details.
dplyr::relocate()
df <- duckdb_tibble(a = 1, b = 1, c = 1, d = "a", e = "a", f = "a")
relocate(df, f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.