library(dplyr) data %>% mutate(time = gsub("x", "c", time)) 这消除了 recode 和 str_detect 的使用 如果您对使用 stringr 死心塌地,那么您应该使用 str_replace ...
確定! 回上一頁