str_prefix: str_prefix

str_prefixR Documentation

str_prefix

Description

str_prefix

Usage

str_prefix(x, prefix, list = seq_along(x))

Arguments

x

(character) to be prefixed

list

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

suffix

(character) length one, or will be recycled

Value

(character)

See Also

  • str_suffix()

Examples

str_prefix(1:3, "S-")
str_prefix(1:5, "<", 1)


BAAQMD/strtools documentation built on Nov. 23, 2023, 5:52 a.m.