Cascade names takes data_frames in a nested lists and pulls them up to the top level, appending names that it encounters along the way
cascade_names(list_or_df, prefix = "") # S3 method for list cascade_names(list_or_df, prefix = "") # S3 method for data.frame cascade_names(list_or_df, prefix = "") # S3 method for default cascade_names(list_or_df, prefix = "")
using "prefix" each time...?
replacing multiple "_" (delimiters) with one
replacing leading delimiters
Really, this function needs to be cleaner!
Recursively dispatches against lists and data.frames, otherwise, it functions as the identity (returning its input)