R/bring_to_front.R

Defines functions bring_to_front

Documented in bring_to_front

#' bring select columns to the front of a dataframe
#' @param .df dataframe with column order to adjust
#' @param ... columns to bring to front
#' @examples 
#' head(Theoph)
#' head(bring_to_front(Theoph, conc, Time))
#' @export
bring_to_front <- function(.df, ...) {
  dplyr::select(.df, ..., dplyr::everything())
}
metrumresearchgroup/PKPDmisc documentation built on Oct. 21, 2022, 9:41 a.m.