[R] extracting text from wordnet using synonym()

Kelvin Lam lamkelf at gmail.com
Sat Aug 15 23:33:17 CEST 2009


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.




More information about the R-help mailing list