Re: [R] Households per Census block

2015-08-04 Thread Zack Almquist
P.S. The US census has different "populations" (or worlds) so make sure the housing variable you use is accessing the correct "world." Best, -- Zack - Zack W. Almquist Assistant Professor Department of Sociology and School of Statistics Aff

Re: [R] Households per Census block

2015-08-04 Thread David Winsemius
On Aug 4, 2015, at 12:31 PM, Keith S Weintraub wrote: > Can you give me a for-instance of “populations”? Is there a table or chart or > list or… > > Also I guess that I should leave my R session on for as long as possible as > “install.blk” takes a really long time to re-upload if that is what

Re: [R] Households per Census block

2015-08-04 Thread Zack Almquist
Hi Keith, I would only use install.blk() once. Then just load the library(UScensus2010blk) like normal on your machine (this should be relatively fast), redownloading and re-installing each time will be very expensive (both on download and time). The SF1 file manual produced by the US Census goes

Re: [R] Households per Census block

2015-08-04 Thread Zack Almquist
Hi Keith, On Tue, Aug 4, 2015 at 12:43 PM, Keith S Weintraub wrote: > I had to download a bunch of stuff but I got it mostly working. > > Unfortunately using the alternative method I get the following: > > > housing<-CensusAPI2010(c("H0010001"), state.fips=state.fips, level = > c("block"), key,

Re: [R] Households per Census block

2015-08-04 Thread Keith S Weintraub
Can you give me a for-instance of “populations”? Is there a table or chart or list or… Also I guess that I should leave my R session on for as long as possible as “install.blk” takes a really long time to re-upload if that is what it is doing. Does install.blk go to the source every time? Than

Re: [R] Households per Census block

2015-08-04 Thread Keith S Weintraub
I had to download a bunch of stuff but I got it mostly working. Unfortunately using the alternative method I get the following: > housing<-CensusAPI2010(c("H0010001"), state.fips=state.fips, level = > c("block"), key, summaryfile = c("sf1")) Error in file(con, "r") : cannot open the connection I

Re: [R] Households per Census block

2015-08-03 Thread Zack Almquist
Hi Anthony and Keith Weintraub, Here is a way to do what you are asking using the UScensus2010 packages: ## latest version of the package, not yet on CRAN install.packages("UScensus2010", repos="http://R-Forge.R-project.org";) library(UScensus2010) install.blk() library(UScensus2010blk) ### You w

Re: [R] Households per Census block

2015-08-03 Thread Anthony Damico
hi, ccing the package maintainer. one alternative is to pull the HU100 variable directly from the census bureau's summary files: that variable starts at position 328 and ends at 336. just modify this loop and you'll get a table with one-record-per-census-block in every state. https://github.com/

[R] Households per Census block

2015-08-03 Thread Keith S Weintraub
Folks, I am using the UScensus2010 package and I am trying to figure out the number of households per census block. There are a number of possible data downloads in the package but apparently I am not smart enough to figure out which data-set is appropriate and what functions to use. Any help