Learn R Programming

census (version 0.1.0)

getCensus: Scrape US Census Data

Description

Takes in a city/state and outputs demographic data from the Missouri Census Data Center

Usage

getCensus(cities, radius)

Arguments

cities

list of cities to be passed

radius

numeric number used to create a boundary around the city coordinates

Value

Data frame containing demographic data

Examples

Run this code
# NOT RUN {
radius <- 2
cities <- c("Chicago", "New York")
df <- getCensus(cities, radius)
head(df)
# }

Run the code above in your browser using DataLab