View source: R/helper_get.sentence.with.pattern.R
get.sentence.with.pattern | R Documentation |
Returns lines with search term patterns.
get.sentence.with.pattern(x, patterns = c(""), tolower = TRUE)
x |
sentence vector to process. |
patterns |
search terms. |
tolower |
Logical. If TRUE converts search terms and text to lower case. |
Character. Vector with sentences, that contain search pattern.
text<-c("This demo", "demonstrates how", "get.sentence.with.pattern works.")
get.sentence.with.pattern(text,c("Demo","example","work"))
get.sentence.with.pattern(text,c("Demo","example","work"),tolower=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.