powered by
These are faster implementations of procedures that could very easily be done with base::sapply.
CharListElemsNthElem(char_list, n)NumListElemsNthElem(num_list, n)
NumListElemsNthElem(num_list, n)
A list of character vectors.
The index of the element that you want from each vector.
A list of numeric vectors.
A list.
CharListElemsNthElem(list(c("a", "b", "c"), c("d", "f", "a")), 2) NumListElemsNthElem(list(1:5, 0:2), 4)
Run the code above in your browser using DataLab