用符号“*”分割字符串(Split a character string by the symbol “*”)
> test = "23*45"
我想用符号分割test *
我试过了...
> strsplit(test,'*')我得到了...
[[1]] [1] "2" "3" "*" "4" "5"我的目标是:
[[1]] [1] "23" "45" > test = "23*45"I'd like to split testby the symbol *
I tried...
> strsplit(test,'*')and I got...
[[1]] [1] "2" "3" "*" "4" "5"What I aim to have is:
[[1]] [1] "23" "45"更多推荐
发布评论