powered by
Extract characters - specified by their indices - from a string and paste them together
str_paste_elems(string, indices)
A string.
A numeric vector of positive integers detailing the indices of the characters of string that we wish to paste together.
string
# NOT RUN { str_paste_elems("abcdef", c(2, 5:6)) # }
Run the code above in your browser using DataLab