stephenholzman / tidyusafec

An R wrapper for the OpenFEC API that features tidy cleaning.
https://stephenholzman.github.io/tidyusafec/
Other
7 stars 0 forks source link

search_candidates Validation #1

Closed stephenholzman closed 6 years ago

stephenholzman commented 6 years ago

Write function for handling validation. NULL values and empty lists can pose problems for tidying. Currently have handling of empty principal_committees lists directly in search_candidates, but may be worth pulling that into another function.

stephenholzman commented 6 years ago

Provided a default value of NA for any NULL value found in mapping the json response to (tidyish) tibble. Null values found in non-exhaustive troubleshooting were for filing dates or party affiliation.

stephenholzman commented 6 years ago

This can be addressed in other issues that are wider in scope. Closing for now.