search for: whale_words

Displaying 1 result from an estimated 1 matches for "whale_words".

2017 Aug 03
1
find similar words in text
...I missed something. How can I now see(display) this list? Hi Riann, There are a couple of ways that you could do this. . . the best approach would probably be to use *grep* instead of *which*, but let me show you both ways. On page 30, replace whales.v <- which(moby.word.v == *whale*) with whale_words <- c(*whale", *whales", *whale's", *whaler", *whalers", *whaling") whales.v <- which(moby.word.v %in% whale_words) the alternative (better) way to do this, with grep, looks like this whales.v <- grep(*^whal.*", moby.word.v) grep uses the regular...