我怎么能用基数在第一个 com上有效地分拨以下插图?
x <- "I want to split here, though I don t want to split elsewhere, even here."
strsplit(x, ???)
预期成果(2节):
[[1]]
[1] "I want to split here" "though I don t want to split elsewhere, even here."
事先感谢你。
EDIT: Didn t think to mention this. This needs to be able to generalize to a column, vector of strings like this, as in:
y <- c("Here s comma 1, and 2, see?", "Here s 2nd sting, like it, not a lot.")
其结果可以是两栏或一条长的病媒(我可以得出所有其他内容),也可以是每个指数([])的缩略语清单。
缺乏清晰度的原因。