我需要用存储在数据框中的一些匹配来替换字符串的子集。 例如 - input_string = "Whats your name and Where're you from"
我需要更换从数据帧这个字符串的一部分。说的数据帧 matching <- data.frame(from_word=c("Whats your name", "name", "fro"),
to_word=c
我无法理解以下代码行中正则表达式的含义。 author = "10_1 A Kumar; Ahmed Hemani ; Johnny Öberg<"
# after some experiment, it looks like this line captures whatever is in
# front of the underscore.
authodid = sub("