str_pos: string position getter (like 'base::substr()' but nicer...

Description Usage Arguments Value Examples

Description

get the 'idx'-th character in 'string'

Usage

1
str_pos(string, idx = NULL, collapse = TRUE)

Arguments

string

a character string

idx

a position index

collapse

whether to smoosh output together

Value

the 'idx'-th character in 'string'

Examples

1
str_pos("boosh", 4)

lefft/lefftpack documentation built on May 8, 2019, 1:13 p.m.