get.bg.latlons: Was used to get block group internal points directly from...

View source: R/get.bg.latlons.R

get.bg.latlonsR Documentation

Was used to get block group internal points directly from Census shapefiles

Description

Download, unzip, read, and assemble lat lon of internal points for US Census block groups.

Usage

get.bg.latlons(
  myyear = 2014,
  mytempdir,
  mystatenums,
  overwrite = FALSE,
  silent = FALSE
)

Arguments

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.

Details

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')

Examples

#get.bg.latlons(mystatenums=c('09','10'))

ejanalysis/proxistat documentation built on April 2, 2024, 10:13 a.m.