split string with multiple spaces r code example
Example: split strings by space in r
unlist(unique(strsplit("This is my test string.", " ")))
[1] "This" "is" "my" "test" "string."
unlist(unique(strsplit("This is my test string.", " ")))
[1] "This" "is" "my" "test" "string."