How to remove specific special characters in R

前端 未结 3 399
别那么骄傲
别那么骄傲 2020-12-15 08:11

I have some sentences like this one.

c = \"In Acid-base reaction (page[4]), why does it create water and not H+?\" 

I want to remove all sp

3条回答
  •  爱一瞬间的悲伤
    2020-12-15 08:57

    gsub("[^[:alnum:][:blank:]+?&/\\-]", "", c)
    # [1] "In Acid-base reaction page4 why does it create water and not H+?"
    

提交回复
热议问题