# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
pvs.key <- "yourkey"
# get election data by ZIP code
election <- Election.getElectionByZip(zip5=list(10001,10002), year="2012")
election
Run the code above in your browser using DataLab