build_query_parameters: Create the query part of a call to the Census's data API

View source: R/build_query_parameters.R

build_query_parametersR Documentation

Create the query part of a call to the Census's data API

Description

Create the query part of a call to the Census's data API

Usage

build_query_parameters(
  variables,
  for_geo,
  for_items = NULL,
  in_geos = NULL,
  use_key = FALSE
)

Arguments

variables

<chr[]> a vector of variable names, like "B01001_001E"

for_geo

<chr> the geographical level the data will describe, e.g. "tract"

for_items

<chr[]> one or more instances of for_geo desired, e.g. "*" or "000200", passed on to build_for_geographies()

in_geos

<lst> a list of key-value pairs to pass to build_in_geographies()

use_key

<lgl?> optional, should the query include a Census API key from the system environment. Defaults to TRUE

Value

a list of key-value pairs that can be converted into a URL query.


higherX4Racine/hercacstables documentation built on Jan. 15, 2025, 9:58 p.m.