str_suffix: str_suffix

str_suffixR Documentation

str_suffix

Description

str_suffix

Usage

str_suffix(x, suffix, list = seq_along(x))

Arguments

x

(character) to be suffixed

suffix

(character) length one, or will be recycled

list

(optional) indices of elements to suffix; defaults to all

Value

(character)

See Also

  • str_prefix()

Examples

str_suffix(1:2, "m")
str_suffix(1:5, " or more", 3)
str_suffix(1:3, c("st", "nd", "rd"))


BAAQMD/strtools documentation built on Sept. 29, 2024, 9:21 a.m.