You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(wbwdi)
countries |> filter(id == "USA") |> unnest(income_levels)
returns
# A tibble: 3 × 10
id iso2_code name capital_city longitude latitude regions admin_regions income_level lending_types
<chr> <chr> <chr> <chr> <chr> <chr> <list> <list> <chr> <list>
1 USA US United States Washington D.C. -77.032 38.8895 <tibble [3 × 1]> <tibble [3 × 1]> HIC <tibble>
2 USA US United States Washington D.C. -77.032 38.8895 <tibble [3 × 1]> <tibble [3 × 1]> XD <tibble>
3 USA US United States Washington D.C. -77.032 38.8895 <tibble [3 × 1]> <tibble [3 × 1]> High income <tibble>
Might also be interesting for your package to feature these nested data.
The text was updated successfully, but these errors were encountered:
A country might belong to several of the categories in the title, hence I decided to provide nested tibbles for them in my implementation: https://github.com/tidy-intelligence/r-wbwdi/blob/4673f7e4697f23829e9f2288681737d500e889b4/R/list_supported_countries.R#L64.
For instance,
returns
Might also be interesting for your package to feature these nested data.
The text was updated successfully, but these errors were encountered: