AskQ
0
Q:

r extract everything before character

library(stringr)
str = c("1", "1_ghfjv", "1")
str_extract(string = str, pattern = "[^_]"))
0

Tags

New to Communities?

Join the community