View source: R/str_sub_front_last.R
str_sub_front_last | R Documentation |
Substring based on number of first and last characters
str_sub_front_last(string, front, last, sep = "...")
string |
string |
front |
number of characters at the front |
last |
number of characters at the back |
sep |
separator in the middle |
Returns a function of colours
Kevin Wang
string = c("Apples", "Banana") front = 2 last = 2 str_sub_front_last(string, front, last)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.