Generate a vector of strings from a vector in R

Here is my list of strings: [’> orange’ , ‘apple’ , ‘banana’]

I want to generate a list of vectors of length 100 using the words in the above string randomly. How to do this in R?

Using the paste0 function you can make combinations of all elements of lists provided.

paste0(words, rev(words), 1:100)