txt_next | R Documentation |
Get the n-th next element of a vector
txt_next(x, n = 1)
x |
a character vector where each element is just 1 term or word |
n |
an integer indicating how far to look next. Defaults to 1. |
a character vector of the same length of x
with the next element
shift
x <- sprintf("%s%s", LETTERS, 1:26) txt_next(x, n = 1) data.frame(word = x, word_next1 = txt_next(x, n = 1), word_next2 = txt_next(x, n = 2), stringsAsFactors = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.