along | R Documentation |
This function was deprecated in purrr 1.0.0 since it's not related to the core purpose of purrr.
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.
list_along(x)
x |
A vector. |
A list of the same length as x
.
x <- 1:5
seq_along(x)
list_along(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.