GetCandIndustryData {ropensecretsapi} | R Documentation |
Provides the top industries contributing to a specified politician.
GetCandIndustryData(params)
params |
Any parameter accepted by this web service call – see here. |
## Not run:
SetAPIKey ("ENTER YOUR PRIVATE API KEY HERE.")
params <- list (cid="N00007360", cycle="2012", ind="K02")
tryCatch(
candIndustryData <- GetCandIndustryData (params),
error =
function (e) {
print (
paste (
"An exception was thrown -- details follow: ",
e,
sep=""
)
)
}
)
## End(Not run)