download_census: Download Census Data

View source: R/main.R

download_censusR Documentation

Download Census Data

Description

Download Census Data

Usage

download_census(
  .key = "",
  .geo,
  .use_age = TRUE,
  .use_gen = TRUE,
  .dir,
  .workers = 1,
  .retry = 10,
  .progress = FALSE,
  .states = NULL
)

Arguments

.key

A required character object containing a valid Census API key, which can be requested at api.census.gov

.geo

Either "county", "tract", "block", or "place"

.use_age

Should the age be included in the census download?

.use_gen

Should the gender be included in the census download?

.dir

Folder to store data

.workers

Number of paralell workers for downloading data

.retry

The number of retries at the census website if network interruption occurs.

.progress

Progress Bar

.states

Two Letter state codes to download

Value

A Dataframe


MatthiasUckert/Rrace documentation built on Sept. 8, 2023, 3:26 p.m.