R/replaceExpressions.PlainTextDocument.R

Defines functions replaceExpressions.PlainTextDocument

Documented in replaceExpressions.PlainTextDocument

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

replaceExpressions.PlainTextDocument <- 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.