powered by
npi_results
S3 method to flatten an npi_results object
npi_flatten(df, cols, key)
A data frame (tibble) with flattened list columns.
A data frame containing the results of a call to npi_search.
npi_search
If non-NULL, only the named columns specified here will be be flattened and returned along with npi.
npi
A quoted column name from df to use as a matching key. The default value is "npi".
df
"npi"
# Flatten all list columns data(npis) npi_flatten(npis) # Only flatten specified columns npi_flatten(npis, cols = c("basic", "identifiers"))
Run the code above in your browser using DataLab