I would like to apply a function across all columns, which are nested data frames or tibbles.
What would be the best way to check if a column is a nested data frame (for instance to be used with mutate_if
or across
?
Here is an example nested data frame, where it should work with.
(mpg %>% group_by(manufacturer) %>% nest())$manufacturer
(mpg %>% group_by(manufacturer) %>% nest())$data