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 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 words... please help in this regard Thanking you in anticpation Shilpa Rai MSc (Statistics) -- View this message in context: http://r.789695.n4.nabble.com/comparing-word-with-dictionary-words-tp4634173.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.