View source: R/get.bg.latlons.R
get.bg.latlons | R Documentation |
Download, unzip, read, and assemble lat lon of internal points for US Census block groups.
get.bg.latlons(
myyear = 2014,
mytempdir,
mystatenums,
overwrite = FALSE,
silent = FALSE
)
myyear |
Year such as 2014 (default) |
mytempdir |
Optional. Default is TIGERTEMP created inside the current working directory. Character string of path to where temporary directory is or will be, for downloaded zip and dbf files. |
mystatenums |
Optional, default is all including PR/VI/DC, etc. Vector of strings of 2-character FIPS codes for states to get data for. |
overwrite |
Optional, FALSE by default (unlike in unzip), which means if zip file exists locally do not download and if contents exist do not unzip. BUT note this does not yet check to see if contents exist and zip does not, in which case could avoid downloading. |
silent |
Optional logical FALSE by default. If TRUE, print more results. |
Note this is obsolete if used to create data() containing the results: bg.pts = get.bg.latlons(mytempdir = getwd(), overwrite=FALSE, silent = TRUE) save(bg.pts, file='bg.pts') # and then this can be saved in the data folder of a package, then build pkg, then access via data('bg.pts')
#get.bg.latlons(mystatenums=c('09','10'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.