R/is.dp.R

#is.dp (double punctuation) internal function for checking/warning 
#extra punctuation
is.dp <- function(text.var) {
  punct <- c(".", "?", "!", "|")
  any(sapply(strsplit(text.var, NULL), function(x) {
    sum(x %in% punct) > 1
  }
  ))
}
trinker/qdap2 documentation built on May 31, 2019, 9:47 p.m.