R/last_to_first_function.R

Defines functions last_to_first

Documented in last_to_first

#' Last to First
#'
#' @description Make the last column the first column in a dataframe
#' @param df  dataframe
#' @keywords helper 
#' @export

last_to_first <- function(df) {
    df[, c(ncol(df), 1:ncol(df) - 1)]
}
tydarnell/GeneticMediation documentation built on May 17, 2020, 2:33 a.m.