Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check dictionaries #4

Open
jonthegeek opened this issue May 21, 2023 · 1 comment
Open

Check dictionaries #4

jonthegeek opened this issue May 21, 2023 · 1 comment

Comments

@jonthegeek
Copy link
Member

143 datasets are missing dictionaries. Confirm that they're really missing, not just that something is named wrong or that sort of thing. I found and fixed several, but didn't want to spend too much time on it until I set something up to check systematically.

@jonthegeek
Copy link
Member Author

tt_summary_tbl |> 
  dplyr::select(year, week, date) |> 
  dplyr::left_join(tt_datasets_metadata, by = c("year", "week")) |> 
  dplyr::select(year, week, date, dataset_name, variable_details) |> 
  tidyr::unnest(variable_details) |> 
  dplyr::summarize(
    missing_dictionary = all(is.na(description)),
    .by = c("year", "week", "date", "dataset_name")
  ) |> 
  dplyr::filter(missing_dictionary) |> 
  dplyr::arrange(desc(date)) |> 
  dplyr::select(-"missing_dictionary") |> 
  dplyr::mutate(
    link = glue::glue("https://tidytues.day/{year}/{date}")
  )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant