Recursively Flatten a Nested List with Concatenated Names
flatten_with_names.Rd
The flatten_with_names
function recursively traverses a nested list and flattens it into a single-level list.
The names of the elements in the resulting list are formed by concatenating the names at each level,
separated by dots. This is useful for transforming deeply nested data structures into a flat format
suitable for data frames or tibbles.
Value
A named list where each element corresponds to a leaf node in the original nested list, and the names reflect the path to that node.