I have a string variable containing alphabet[a-z], space[ ], and apostrophe[\'],eg. x <- \"a\'b c\" I want to replace apostrophe[\'] with blank[], and replac
x <- \"a\'b c\"
gsub("\\s", "", chartr("' ", " _", x)) # Use whitespace and then remove it