powered by
Convert Numbered Index to Named Index of List Element
convert_idx_to_name(vec, obj)
numeric numeric index of list element.
numeric
list
character named index of list element.
character
# NOT RUN { 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) # }
Run the code above in your browser using DataLab