rlapply | R Documentation |
Recursively apply a function to the elements of a list that are themselves lists.
rlapply(x, fun, name_fun = NULL, ...)
x |
The list of lists to apply the function to |
fun |
The function to apply to lists |
name_fun |
Function used to name the elements of the returned list. Should take a list as argument and return the name |
... |
arguments to pass to fun |
A one-level list where each element is the value fun returns for a given list in x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.