powered by
purrr:::lifecycle("questioning")
It can be useful to create an empty list that you plan to fill later. This is similar to the idea of seq_along(), which creates a vector of the same length as its input.
seq_along()
list_along(x)
A list of the same length as x.
x
A vector.
This function might change to vctrs::vec_init().
vctrs::vec_init()
x <- 1:5 seq_along(x) list_along(x)
Run the code above in your browser using DataLab