provider_unpack() allows you to unpack the list-columns
within the response from provider_nppes().
Arguments
- df
tibble response from
provider_nppes()- clean_names
Clean column names with janitor's
clean_names()function; default isTRUE.
Value
A tibble containing the unpacked
list-columns of a search performed with the provider_nppes() function.
Examples
if (FALSE) {
# Single NPI ==============================================================
provider_nppes(npi = 1528060837) |>
provider_unpack()
# City, state, country ====================================================
provider_nppes(city = "Atlanta",
state = "GA",
country = "US") |>
provider_unpack()
# First name, city, state ================================================
provider_nppes(first = "John",
city = "Baltimore",
state = "MD") |>
provider_unpack()
}