rlapply: Recursively apply function to lists in a list

View source: R/fct_ui.R

rlapplyR Documentation

Recursively apply function to lists in a list

Description

Recursively apply a function to the elements of a list that are themselves lists.

Usage

rlapply(x, fun, name_fun = NULL, ...)

Arguments

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

Value

A one-level list where each element is the value fun returns for a given list in x


Ottis1/fieldactivity documentation built on Nov. 21, 2022, 2:23 p.m.