# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
pvs.key <- "yourkey"
# get information about an election of a certain year and state
election <- Election.getElectionByYearState(list("NY","FL"),2012)
election
Run the code above in your browser using DataLab