Skip to content

Partial Matching

2 messages · Abraham Mathew, Gabor Grothendieck

#
On Sat, Jun 4, 2011 at 6:44 PM, Abraham Mathew <abmathewks at gmail.com> wrote:
strsplit returns a one component list containing the vector of words
so you want to replace the relevant statement with:

n = strsplit(as.character(keyword), " ")[[1]]

however, regular expressions is shorter:
[1]  TRUE FALSE FALSE