R/cn_mar.R

#' Conform to mar column heading
#'
#' The function converts column of a dataframe, returning "_"
#' where there is a ".".
#'
#' @param d
#'
#' @return dataframe
#' @export
#'
cn_mar <- function(d) {

  d %>% select_all(function(x) gsub('.','_',x))

  }
einarhjorleifsson/mar documentation built on May 16, 2019, 1:30 a.m.