Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #R
ADD COMMENT
Topic
Name
6+7 =