Skip to contents

provider_unpack() allows you to unpack the list-columns within the response from provider_nppes().

Usage

provider_unpack(df, clean_names = TRUE)

Arguments

df

tibble response from provider_nppes()

clean_names

Clean column names with janitor's clean_names() function; default is TRUE.

Value

A tibble containing the unpacked list-columns of a search performed with the provider_nppes() function.

See also

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()
}