Answers for "get string without ending in R"

R
0

get string without ending in R

char_array = c("foo_bar","bar_foo","apple","beer")
a = data.frame("data"=char_array,"data2"=1:4)
a$data = substr(a$data,1,nchar(a$data)-3)
Posted by: Guest on June-21-2020

Code answers related to "get string without ending in R"

Browse Popular Code Answers by Language