来源:https://stackoverflow.com/questions/25372082/create-column-based-on-presence-of-string-pattern-and-ifelse 标签 regex r if-statement