Answers for "split string into vector r"

R
2

r split string column by delimiter

#Seperating a name column into first and last name. 
seperate(table_name, full_name,into=c("first_name", "last_name"), sep = " ")
#sep is the delimiter to seperate by, in this case a space.
Posted by: Guest on September-25-2021
0

split strings by space in r

unlist(unique(strsplit("This is my test string.", " ")))
[1] "This"    "is"      "my"      "test"    "string."
Posted by: Guest on April-06-2021

Browse Popular Code Answers by Language