我有一个类似下面的字符串,想要删除其中所有出现的反斜杠。 例如:
myString <- "Shawshank Redemption, The (1994)\";Titanic (1997)\";Contact (1997)\";Babe (1995)\";Dead Man Walking (1995)\";Mr Holland's Opus (1995)\";Full Monty, The (1997)\";LA Confidential (1997)\";Usual Suspects, The (1995)\";Manchurian Candidate, The (1962)"
我尝试过:
gsub(";", '";', gsub("\\.", "", col_concat(df, sep = ';')))