Initializing an empty list

When you’re using a for loop to fill up a list, sometimes it’s a good idea to initialize the list ahead of time, with the right number of elements but with no data. But actually doing this is a little harder than I had anticipated.
R
Author
Affiliation

Yale University

Published

September 13, 2019