[R] Number of words in a string

Hans-Joerg Bibiko bibiko at eva.mpg.de
Wed Apr 9 17:50:32 CEST 2008


Something like that?

gsub(" {1,}\w+$", "", C)



More information about the R-help mailing list