fetch_char {baizer} | R Documentation |
fetch character from strings
fetch_char(s, index_list, na.rm = FALSE, collapse = FALSE)
s |
strings |
index_list |
index of nth character,
can be output of |
na.rm |
remove NA values from results or not |
collapse |
optional string used to combine the characters from a same string |
list of characters
fetch_char(rep("ABC", 3), list(1, 2, 3))