Questions tagged [census]
187 questions
0
votes
2 answers
R: Converting a list of lists into a data frame (Census data)
I am trying to use the Census API to download specific tables and save them in data frames. I have been successful in downloading the data. I assemble the appropriate URL for the call and then have used the package 'rjson' to read the URL into a…

socialscientist
- 3,759
- 5
- 23
- 58
0
votes
1 answer
How do I qualify a SpatialPolygonsDataFrame using another SpatialPolygonsDataFrame?
I have Shapefiles from census data from US census.gov.
I've read the files into R using readOGR from the rdgal library.
sp1: voting district - SpatialPolygonsDataFrame
sp2: block level for a larger area and higher resolution than sp1 -…

Matt L.
- 397
- 4
- 12
0
votes
2 answers
Extract census data using ACS R package for all Zip codes and obtain future projections
I have a couple questions about how I can best use the acs R package. Thanks in advance for your help.
I would like to build up a comprehensive data frame that is a lookup table with all census data I can get from their API for each Zip code. …

Kevin
- 311
- 5
- 18
0
votes
1 answer
eWam AppendObject fails to append object to the list
I'm running a census load through web services to create a member contract including voluntary spouse coverage. The employee and employee coverage are created succesfully, but when the spouse person object is being created, the correspondence fails…
user5791641
0
votes
1 answer
JSON Array Results from Census
I have a url that returns data from the Census. I receive the follow back when I do the call:
[["PCT012A015","PCT012A119","state"],
["20604","19526","01"]]
Since there are no names, the problem I am having is that I can't figure out how to define…
0
votes
1 answer
American Community Survey, SAS EG code for margin of error
The Census Bureau gives the mathematical formula for calculating the margin of error for the American Community Survey, but doesn't include the SAS code for it. The formula is on page 24 of the documentation here:…

Jeffrey Wilkins
- 1
- 1
0
votes
1 answer
Specifiying benchmark and vintage when batch geocoding with geocoding.geo.census.gov
I have looked at the REST API documentation (which only provides one example with a value of benchmark=9) and am not clear on how to make a batch request. In particular, the rest of the documentation does not mention a benchmark of "9," so I have no…

user3691583
- 1
- 1
0
votes
2 answers
Character encoding for US Census Cartographic Boundary Files
I'm trying to import the US Census cartographic boundary files (available here: http://www.census.gov/geo/www/cob/bdy_files.html ) into a GeoDjango application. However, python is complaining about UnicodeDecodeErrors (for example, for the…

user85461
- 6,510
- 2
- 34
- 40
0
votes
2 answers
How to get field values from JSON response
I'm able to retrieve the entire JSON response from my API and store that in a NSArray.
Then I loop through the entire response and store each result group in NSDictionary and NSLogit.
However, I'm not how can I get the field values from within each…

user3768711
- 83
- 6
0
votes
2 answers
Format Census ACS API Data For Use In Choropleth Map
I am using the US Census ACS API to extract data for all counties in the US. I then want to generate a county-level choropleth map shaded based on the values. If I have a static data file (a CSV with area code: value) I am able to render the data.…

wergeld
- 14,332
- 8
- 51
- 81
0
votes
1 answer
Sorting multiple arrays within a file. Putting states population in order
**This is my first post so don't know if I did this right. But I have to read a file and then put the list in order from smallest to largest by the population. All I get is Alabama and that shows up only one time. I think my problem is from the…

GoingBubbaLong
- 7
- 4
0
votes
2 answers
How to drop factor levels while scraping data off US Census HTML site
Thank you in advance for your help. On the US Census website (below), I am looking for an element in the 6th row, 3rd column of the 4th table.
Here's the code I am writing:
complete_URL <-…

Jonathan Charlton
- 1,975
- 6
- 23
- 30
0
votes
0 answers
Exporting data from UScensus2010
I need to extract Census 2010 data for CDPs (nationwide) and figured it would be simplest to use the UScensus2010 package to extract the key tables I need, one state at a time, and then export the resulting data. Towards this end I ran the following…

Ani
- 313
- 2
- 11
-1
votes
1 answer
Big O: Reduce complexety order (list comprehension)
I am trying to read out some census data. It consists out of ~53 mo lines and one of my function seems to increase the calculation time quadratically. I want to filter all the regions that have district heating. This little list comprehension makes…

tartearth
- 29
- 2
-1
votes
1 answer
How do I loop over this outerHTML code to get out certain data? (I don't know how to webscrape it so I want to try this)
I am trying to get a list that matches India's districts to its district codes as they were during the 2011 population census. Below I will post a small subset of the outerHTML I copied from a government website. I am trying to loop over it and…

DeMelkbroer
- 629
- 1
- 6
- 21