Re: [R] comparing word with dictionary words

2012-06-22 Thread Rui Barradas
Hello, Try something along the lines of dic <- letters[1:4] para <- sample(letters, 100, TRUE) ix <- para %in% dic para[ !ix ]# all words unique(para[ !ix ]) # without duplicates Hope this helps, Rui Barradas Em 22-06-2012 07:45, raishilpa escreveu: Hello, I am comparing each words

[R] comparing word with dictionary words

2012-06-22 Thread raishilpa
Hello, I am comparing each words of a paragraph with the dictionary words (I have a text file/csv file of dictionary words -dictionary.csv/dictionary.txt) and if a word is not present in the dictionary, I want to store that word in another variable . and want output showing the list of these w