View source: R/npi_results_s3.R
npi_flatten | R Documentation |
npi_results
objectS3 method to flatten an npi_results
object
npi_flatten(df, cols, key)
df |
A data frame containing the results of a call to
|
cols |
If non-NULL, only the named columns specified here will be be
flattened and returned along with |
key |
A quoted column name from |
A data frame (tibble) with flattened list columns.
# Flatten all list columns data(npis) npi_flatten(npis) # Only flatten specified columns npi_flatten(npis, cols = c("basic", "identifiers"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.