# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
pvs.key <- "yourkey"
# get election data for certain election IDs
election <- Election.getStageCandidates(stageId=list("P"),electionId=list(2582,2607))
election
Run the code above in your browser using DataLab