convert_idx_to_name {trimmer} | R Documentation |
Convert Numbered Index to Named Index of List Element
Description
Convert Numbered Index to Named Index of List Element
Usage
convert_idx_to_name(vec, obj)
Arguments
vec |
|
obj |
|
Value
character
named index of list element.
Examples
d <- list(a = list(b = list(c = 3, d = 5), e = c(2,4)))
num_idx <- c(1,1,2)
convert_idx_to_name(num_idx, d)
[Package trimmer version 0.8.1 Index]