[R] Re move all punctuations except commas

Rnewbie xuancj at yahoo.com
Thu Aug 6 14:37:36 CEST 2009

Dear all,

I wanted to remove all punctuations except commas from a string.

I used:

gsub("[[:punct:]]", "", string)

but I don't know how to exclude the commas ",". Anyone would kindly answer
my basic question?
View this message in context: http://www.nabble.com/Remove-all-punctuations-except-commas-tp24845721p24845721.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list