library(stringr)
str_sub("0.959119909485581_171",1,str_locate("0.959119909485581_171","\\_")[1]-1)
##[1] "0.959119909485581"
library(stringr)
str_sub("0.959119909485581_171",1,str_locate("0.959119909485581_171","\\_")[1]-1)
##[1] "0.959119909485581"
本文标题:2022-08-02- 提取下划线“_”前的数字
本文链接:https://www.haomeiwen.com/subject/rxejwrtx.html
网友评论