inst/doc/getting-started.R

## ----set-options, warning=FALSE, message=FALSE---------------------------
library(census)

# City level data for Chicago and New York
radius <- 5
cities <- c("Chicago, IL", "New York")
df <- getCensus(cities, radius)
df[1:2, c("sitename","radius","TotPop","pctMales","pctFemales","AvgFamInc","pctPrivWageWorkers","pctGovWorkers", "pctMarried","pctBachelors","MedianHValue")]

Try the census package in your browser

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

census documentation built on Nov. 17, 2017, 5:09 a.m.