标签: r strsplit
以下字符需要用“。”分隔。
value <- "abcdefg.csv" strsplit(value,".")
我得到的输出是:
[[1]] [1] "" "" "" "" "" "" "" "" "" "" ""
但是,我想要的是:
[[1]] [1] "abcdefg" "csv"