Learn R Programming

ropensecretsapi (version 1.0.1)

GetCandSectorData: Provides the top industries contributing to a specified politician.

Description

Provides the top industries contributing to a specified politician.

Usage

GetCandSectorData(params)

Arguments

params
Any parameter accepted by this web service call -- see here.

Examples

Run this code
## Not run: 
#  SetAPIKey ("ENTER YOUR PRIVATE API KEY HERE.")
#  params <- list (cid="N00007360", cycle="2012")
#  tryCatch(
#      candSectorData <- GetCandSectorData (params),
#      error =
#          function (e) {
#              print (
#                  paste (
#                      "An exception was thrown -- details follow: ",
#                      e,
#                      sep=""
#                  )
#              )
#          }
#      )
#  ## End(Not run)

Run the code above in your browser using DataLab