Displaying 1 result from an estimated 1 matches for "parcels_nsp_blockgroup".
2012 Apr 04
0
crosstabs and histograms with flexible binning of dates
...0
Below is my code to handle the arbitrary bins, but I'm guessing there are
useful libraries and more elegant approaches. Any pointers would be
appreciated.
import(foreign)
# LOAD FILE
#parcels=read.dbf() #depending on source file
parcels=read.delim("~/Projects/GIS_DATA/Parcels_NSP_BlockGroup.txt")
attach(parcels)
# DEFINE BINNING
basedate=as.Date("2011/05/11")
currentdate=basedate
interval=3 #width of interval in months. 3 = quarterly
num_intervals=5 #how many intervals to include after basedate
for (i in c(1:num_intervals)) {
startdate=currentdate
enddate=seq(star...