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())
}

Try the PKPDmisc package in your browser

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

PKPDmisc documentation built on April 14, 2020, 5:49 p.m.