Questions tagged [census]
187 questions
-1
votes
1 answer
How to fix a "positional argument" in order to successfully run a census API for PostgreSQL?
I'm trying to pull data from a csv file of census API variables and the code will select all state, county, and census tracts. I am getting a "TypeError: state_county_tract()"; "takes 5 positional arguments but 6 were given." There seems to have…

Melissa Barnett
- 42
- 1
- 4
-1
votes
1 answer
Is it possible to get the gps coordinates (latitude and longitude) that correspond with all of the census blocks in the United States?
I have a list of all of the census blocks (FIPS codes) in the US and I need to get the corresponding GPS codes for each of these.
I've tried looking on the census.gov site and their API, and I've found some other relevant resources like…

TJE
- 570
- 1
- 5
- 20
-1
votes
1 answer
ZIP Code Tabulation Area (ZCTA) Relationship with Census Blocks?
The US Census provides a relationship file to connect ZIP Code Tabulation Areas (ZCTAs) with counties, county subdivisions, places, census tracts, congressional districts, and MSAs, found here:…
-1
votes
1 answer
Map census: rbind fortify spatial object in R with ggplot2
I am trying to rbind the US and Canada census maps using ggplot2.
us <- readOGR(dsn = "00-raw/usmaps/us/", layer = "co99_d90")
canada <- readOGR(dsn = "00-raw/gcd_000b11a_e/", layer = "canada")
canada$id <- as.numeric(canada$id)
us$id <-…

Charles_de_Montigny
- 69
- 6
-1
votes
1 answer
How to calculate averages from population data?
I am having a lot of trouble finding a method to calculate population census data which is clumped into groups, for example:
There are 280 people within the 0-4 years old age range, 258 within the 5-9 age range and so on. How would I calculate this…

Angela Faro Lina
- 1
- 1
- 1
-2
votes
1 answer
Choroplethr error message
I keep receiving this error message when attempting to use functions such as get_county_demographics or get_acs_data:
Error in matrix(unlist(value, recursive = FALSE, use.names = FALSE),
nrow = nr, : 'data' must be of a vector type, was…
-2
votes
2 answers
Can I use storm in census database?
So far that I know about Storm, that it's used to analyze Twitter tweets to get trending topics, but can it be used to analyze data from government's census? And because the data is structured, is storm suitable for that?