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 July 4, 2017, 5:01 p.m.