Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文字列を2つの単語で分割したいと思います:
s <- "PCB153 treated HepG2 cells at T18" strsplit(s, split = <treated><at>)
<>の代わりに何を書けばいいですか?
私は得るでしょう:
"PCB153" "HepG2 cells" "T18"
文字列として入力する必要があります。処理済みで分割するには:
s <- "PCB153 treated HepG2 cells at T18" s2 <- strsplit(s,split="treated") unlist(s2)
処理された場所と次の場所で分割するには:
unlist(strsplit(unlist(s2),split="at"))