Extracts and transforms nested data structures from list columns in
USAspending API response tibbles.
Usage
extract_nested_data(x, col_name, flatten = FALSE)
Arguments
- x
A tibble with list columns to extract
- col_name
Name of the list column to extract
- flatten
Logical. If TRUE, attempts to flatten the extracted tibble
Value
A tibble containing the extracted and transformed nested data
Note
This function is particularly useful for extracting nested data
structures like 'children', 'results', or other list-columns that
contain complex data