R/relocate-rd.R

#' @title Change column order
#'
#' @description  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.
#'
#' @inheritParams dplyr::relocate
#' @examples
#' df <- duckdb_tibble(a = 1, b = 1, c = 1, d = "a", e = "a", f = "a")
#' relocate(df, f)
#' @seealso [dplyr::relocate()]
#' @rdname relocate.duckplyr_df
#' @name relocate.duckplyr_df
NULL

Try the duckplyr package in your browser

Any scripts or data that you put into this service are public.

duckplyr documentation built on June 8, 2025, 10:53 a.m.