R/underbar_change.R

Defines functions underbar_change

Documented in underbar_change

#' change to underbar
#'
#' underbar_change
#'
#' @param x the vector have marks or symbols changed to underbar.
#' @return A vector
#' @example
#'   a <- "1999.12.30"
#'   underbar_change(a)
#' @export

underbar_change <- function(x) gsub("[[:punct:]]+", "_", gsub("[[:punct:]]$", "", x))
Sanggeun/g.function.bsg documentation built on May 15, 2020, 3:50 p.m.