I have a string in R as
x <- \"The length of the word is going to be of nice use to me\"
I want the first 10 words of the above specifi
How about using the word function from Hadley Wickham's stringr package?
word
stringr
word(string = x, start = 1, end = 10, sep = fixed(" "))