R, Julia, SQL, Octave and others: Personal notes on data analysis, computation, data access most especially for querying voter history, Census, PDC, and other election data. Reader is advised to just paste the code text into Notepad++.
Monday, May 16, 2016
Tale of Threes...
This code experiments with using data.table to group and select data. Political piece is here.
Monday, April 25, 2016
Saturday, April 2, 2016
Tuesday, March 22, 2016
Checking Caucuses
Some tricky, dense political code that reveals information about Precinct Sites based on Voting History. Ask if you need the spreadsheet. Political post here. Click to enlarge.
Code after the break.
Code after the break.
Saturday, March 12, 2016
Wednesday, March 2, 2016
Friday, February 26, 2016
Monday, February 8, 2016
VoterDensity.r
This was quite a project. Learning to show voting results with plot3D in rgl is a breakthrough.
This post (VoterDensity.r) provides the .GlobalEnv for VoterDensity_000.r, VoterDensity_001.r, VoterDensity_002.r, VoterDensity_003.r. You will need the data files MB.11.24.15.FINAL.txt and 20151103_WhatcomPrecincts.csv. You can email me if you need them.
VoterDensity_002.r
# VoterDensity_002.r
# Needs .GlobalEnv derived from VoterDensity.r
# 3D charts with rgl and plot3D
# Needs .GlobalEnv derived from VoterDensity.r
# 3D charts with rgl and plot3D