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) 
}
Chris1221/mineR documentation built on July 6, 2017, 6:32 a.m.