str_sub_front_last: Substring based on number of first and last characters

View source: R/str_sub_front_last.R

str_sub_front_lastR Documentation

Substring based on number of first and last characters

Description

Substring based on number of first and last characters

Usage

str_sub_front_last(string, front, last, sep = "...")

Arguments

string

string

front

number of characters at the front

last

number of characters at the back

sep

separator in the middle

Value

Returns a function of colours

Author(s)

Kevin Wang

Examples

string = c("Apples", "Banana")
front = 2
last = 2
str_sub_front_last(string, front, last)

kevinwang09/SmokyScotch documentation built on Aug. 25, 2022, 5:41 p.m.