01 Apr 2018
Lists can be pre-allocated: with vector(mode = “list”)
result <- vector(mode = "list", 3) print(result) #> [[1]] #> NULL #> #> [[2]] #> NULL #> #> [[3]] #> NULL
R
function