R/rename_colnames.R

Defines functions rename_colnames

Documented in rename_colnames

#' @title rename_colnames
#' @description rename column names
#' @param data data.frame to be renamed
#' @param new_colnames a vector of new column names
#'
#' @return data.frame with the new column names
#' @export
#'
#' @examples
#' # example to be added
rename_colnames <- function(data, new_colnames) {
  colnames(data) <- new_colnames
  return(data)
}
epongpipat/eepR documentation built on June 5, 2024, 10:03 a.m.