powered by
listify(indices)
indexify
# let's say you have a vector of indices list like this number_elements = c(3, 1, 5) # get list of index vectors based on 'number_elements' listify(number_elements)
Run the code above in your browser using DataLab