Skip to contents

lstrrr-core

Basic functions for list manipulation.

list_path()
Get all leaf paths in a nested list
list_delete()
Delete a nested element by path
list_depth()
Compute nested list depth
list_find()
Find leaves satisfying predicate
list_get()
Get an element from a nested list by path
list_has()
Check whether a path exists in a nested list
list_set()
Set a nested element by path
list_nleaf()
Count Leaf Nodes in a Nested List

purrr-like

list_flatten()
Flatten a nested list
list_imap()
Map over leaves with path (names)
list_map()
Map over leaves of a nested list
list_map2()
Map over leaves of two nested lists
list_modify_if()
Modify leaves satisfying predicate
list_pmap()
Map over leaves of multiple nested lists
list_pwalk()
Walk over leaves of multiple nested lists
list_walk()
Walk over leaves of a nested list
list_walk2()
Walk over leaves of two nested lists
list_iwalk()
Walk over leaves of two nested lists

Utilities

dir_listwise()
Convert File Paths to a Nested List
modify_list()
Modify a List with Another List
list_stats()
Convert a Nested List to Tree Data
viz_list()
Visualize Nested List Structure

Data

sputnik_1
Sputnik 1 nested example data