You could use the package tokenizers
for that:
library(tokenizers)
tokenize_sentences(x)
where x
is your character vector. It results in
[[1]]
[1] "This is a very long character vector."
[[2]]
[1] "Why is it so long?"
[2] "I want to split this vector into senteces by using e.g. strssplit."
[[3]]
[1] "Can someone help me?"
[[4]]
[1] "That would be nice?"
You could then use unlist
to remove the list structure.