R/replaceExpressions.character.R

Defines functions replaceExpressions.character

Documented in replaceExpressions.character

#' Internal expression replacement with grep
#'
#' @param x pattern
#'
#' @export

replaceExpressions.character <- function(x){
	x <- gsub("-", " ", x, ignore.case =FALSE, fixed = TRUE)
	x <- gsub(".", "\n", x,ignore.case = FALSE, fixed = TRUE)
	x <- gsub("_", "\n", x,ignore.case = FALSE, fixed = TRUE)
	return(x) 
}

Try the goldi package in your browser

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

goldi documentation built on May 2, 2019, 3:43 a.m.