Construct the search string (aka "pattern") based on provided
search terms. The get.unique.terms()
and get.bigrams.oi()
functions use this
function. The function is a simple wrapper for the paste()
function that
surrounds each search term with \\b
and separates multiple terms with
pipes |
.
Author
Emilio Xavier Esposito emilio.esposito@gmail.com (https://github.com/emilioxavier)
Examples
if (FALSE) { # \dontrun{
search.terms <- c("dog", "cat", "fish")
create.search.string(search.terms)
"\\bdog\\b|\\bcat\\b|\\bfish\\b"
} # }