fetch_char: fetch character from strings

fetch_charR Documentation

fetch character from strings

Description

fetch character from strings

Usage

fetch_char(s, index_list, na.rm = FALSE, collapse = FALSE)

Arguments

s

strings

index_list

index of nth character, can be output of diff_index or same_index

na.rm

remove NA values from results or not

collapse

optional string used to combine the characters from a same string

Value

list of characters

Examples

fetch_char(rep("ABC", 3), list(1, 2, 3))

baizer documentation built on Oct. 19, 2023, 9:07 a.m.