traverse_nested_list: Apply fun to the bottom level of a nested list structure

Description Usage Arguments Value

Description

Used to batch process computation results that are stored into a nested list structure. Analysis results are stored as lists but with class attribute changed. This signals that the recursion into the list structure should end and fun should be applied instead. Can be used e.g. to pick out results from a complex list structure.

Usage

1
traverse_nested_list(lst, fun, exclude_names = NULL, ...)

Arguments

lst

nested list, A nested list structure to process

fun

function object, The function to apply at the bottom level

exclude_names

string array, Names of list elements to skip at any level

...

Furhter parameters passed on to fun

Value

A list outputs generated when applying fun to the bottom level of input lst. Bottom level is considered reached when something other than class == 'list' is encountered.



Search within the cocoreg package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.