zip2
s together parallel lists into a list-of-lists. It is named zip2 to not collide with utils.
zip2(...)enumerate(...)
Objects to be zipped together.
a list of lists
enumerate
zips together a list with it's indices.
https://stackoverflow.com/questions/9281323/zip-or-enumerate-in-r/57564884#57564884
# NOT RUN {
zip2(1:5,1:10)
enumerate(l=LETTERS)
# }
Run the code above in your browser using DataLab