Skip to content

Instantly share code, notes, and snippets.

@jstray jstray/gist:3741258
Created Sep 18, 2012

What would you like to do?
Get recent votes in UK house of Lords data
# -------------------------------- Take recent votes ------------------------------
# take only N most recent votes
recentvotes = votes[,1:Nvotes]
# set MP row names to party name
row.names(recentvotes) = lords[,"party"]
# remove all MPs who didn't vote at all in these recent votes
recentvotes = recentvotes[rowSums(abs(recentvotes)) != 0, ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.