Dear group, There are postings on extracting partial string using sub()/gsub()/gsubfn() but I still couldn't figure this one out. Supposed I am pulling the synonyms of "help" using synonyms("help") from wordnet and get the followings:
> synonyms("help") [1] "c(\"aid\", \"assist\", \"assistance\", \"help\")" [2] "c(\"aid\", \"assistance\", \"help\")" How can I get a one character string at the end that looks like this: [1] "aid" "assist" "assistance" "help" "aid" "assist" "help" Thanks for the help!!!!! Kelvin -- View this message in context: http://www.nabble.com/extracting-text-from-wordnet-using-synonym%28%29-tp24988275p24988275.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.