DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
r extract everything before character
library(stringr) str = c("1", "1_ghfjv", "1") str_extract(string = str, pattern = "[^_]"))
PREVIOUS
NEXT
Tagged:
#extract
#character
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit