我想用两个词分割一个字符串:s <- "PCB153 treated HepG2 cells at T18"strsplit(s, split = <treated><at>)我应该写什么而不是?我会得到:"PCB153" "HepG2 cells" "T18" 最佳答案 strsplit(s, split="treated|at")#[[1]]#[1] "PCB153 " " HepG2 cells " " T18"关于regex - 在 R 中按单词拆分字符串,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22658184/ 10-12 14:02