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\)
Try this:
Str - c(c(\aid\, \assist\, \assistance\, \help\),
c(\aid\, \assistance\, \help\))
unlist(sapply(Str, function(x)dget(textConnection(x)), USE.NAMES = FALSE))
On Sat, Aug 15, 2009 at 6:33 PM, Kelvin Lam lamk...@gmail.com wrote:
Dear group,
There are postings on extracting
Or a variation:
unlist(lapply(parse(text = Str), eval))
[1] aidassist assistance help aid
[6] assistance help
On Sat, Aug 15, 2009 at 5:55 PM, Henrique Dallazuannawww...@gmail.com wrote:
Try this:
Str - c(c(\aid\, \assist\, \assistance\, \help\),
c(\aid\,
Thank you both! It works now. (Need to check out the parsing )
Gabor Grothendieck wrote:
Or a variation:
unlist(lapply(parse(text = Str), eval))
[1] aidassist assistance help aid
[6] assistance help
On Sat, Aug 15, 2009 at 5:55 PM, Henrique
4 matches
Mail list logo