lst | R Documentation |
lst()
constructs a list, similar to base::list()
, but where components
are built sequentially. When defining a component, you can refer to components
created earlier in the call. lst()
also generates missing names
automatically.
lst(...)
... |
Named or unnamed elements of a list. If the element is unnamed, its expression will be used as its name. |
A named list.
# the value of n can be used immediately in the definition of x
lst(n = 5, x = runif(n))
# missing names are constructed from user's input
lst(1:3, z = letters[4:6], runif(3))
a <- 1:3
b <- letters[4:6]
lst(a, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.