Description Usage Arguments Value Warning Author(s) References See Also Examples
demographics
allows the user to pull out one or more demographic variables at several different geographic levels.
1 2 3 | demographics(dem = "P0010001", state, statefips=FALSE,
level = c("tract",
"blk", "blkgrp", "cdp", "msa", "county"), msaname=NULL)
|
dem |
Character string or vector. Must be the actual name of the demographic variables attached to |
state |
a character string, can either be the full name of a state (e.g. "oregon"), the abbreviation (e.g. "or"), or the FIPS code (e.g. "41")– note that if you are using the FIPS code you have to change statefips to |
statefips |
logical, by default |
level |
a character string, takes levels |
msaname |
logical (optional), if |
An object of class matrix
.
You must have the packages UScensus2010tract
, UScensus2010blkgrp
and UScensus2010blk
installed to use levels "blkgrp" and "blk" respectively.
Zack W. Almquist almquist@uci.edu
Zack W. Almquist (2010). US Census Spatial and Demographic Data in R: The UScensus2000 Suite of Packages. Journal of Statistical Software, 37(6), 1-31. http://www.jstatsoft.org/v37/i06/.
Census 2010 Summary File 1 [name of state1 or United States]/prepared by the U.S. Census
Bureau, 20010.
http://www.census.gov/prod/cen2010/doc/sf1.pdf
1 2 3 4 5 | ## Not run:
#County Example
demographics(state="or",level="county")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.