Skip to content
Prev 201229 / 398503 Next

Removing "+" and "?" signs

On 23/11/2009, at 12:01 PM, Steven Kang wrote:

            
(a) That's funny.  I don't get an error message when I try your example.
I get

[1] " a s d f + , j k l ? "

Of course that's not what you want, though.

(b) You need to escape the question mark:

  > gsub("\\?", " ", x)

yields

[1] "asdf+,jkl "

which I think *is* what you want.

	cheers,

		Rolf Turner



######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}