text<-c("This demo demonstrates how which.term works.",
"The result is a simple 0, 1 coded vector for all search patterns or
a vector including the identified patterns only.")
which.term(text,c("Demo","example","work"))
which.term(text,c("Demo","example","work"),tolower=TRUE,hits_only=TRUE)
Run the code above in your browser using DataLab