inst/doc/npi.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(npi)

## ----eval = FALSE-------------------------------------------------------------
# nyc <- npi_search(city = "New York City")
# nyc

## ----eval = FALSE-------------------------------------------------------------
# nyc_multi <- npi_search(city = "New York City", state = "NY", enumeration_type = "org")
# nyc_multi

## ----eval = FALSE-------------------------------------------------------------
# nyc_25 <- npi_search(city = "New York City", limit = 25)
# nyc_25

## ----eval = FALSE-------------------------------------------------------------
# nyc_300 <- npi_search(city = "New York City", limit = 300)
# nyc_300

## -----------------------------------------------------------------------------
nyc <- npi::npis

## -----------------------------------------------------------------------------
npi_summarize(nyc)

## -----------------------------------------------------------------------------
npi_flatten(nyc)

## -----------------------------------------------------------------------------
npi_flatten(nyc, cols = c("basic", "taxonomies"))

Try the npi package in your browser

Any scripts or data that you put into this service are public.

npi documentation built on Sept. 6, 2026, 9:06 a.m.