get_endpoint: get_endpoint

View source: R/get_endpoint.R

get_endpointR Documentation

get_endpoint

Description

Get endpoint for a specific series, jurisdiction, year, document_type combo

Usage

get_endpoint(series, jurisdiction, year, document_type, summary = TRUE)

Arguments

series

Series ID(s)

jurisdiction

ID for the jurisdiction

year

Year(s) of data

document_type

ID for type of document

summary

Return summary instead of document level data (only one year of data is allowed for document level data), default value is TRUE

Value

Returns the endpoint, e.g. '/state-summary' for summary-level state data

Examples

## Not run: get_endpoint(
  series = c(28, 33, 36), jurisdiction = 38,
  year = c(1970, 2003, 2004, 2018), document_type = 1
)
## End(Not run)

regcensus documentation built on Oct. 4, 2023, 1:07 a.m.