Advertisement
Guest User

Untitled

a guest
Oct 29th, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.24 KB | None | 0 0
  1. > targetList <- c("nice", "perfect", "good")
  2. > phrase1 <- "this is not very good"
  3. > negate(targetList, phrase1, 15 )
  4. [1] "this is not very good"
  5. > phrase2 <- "this isn't very good"
  6. > negate(targetList, phrase2, 15 )
  7. [1] "this isn't very good"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement