Learn R Programming

pvsR (version 0.1.1)

Committee.getTypes: Get the committee types (house, senate, joint, etc.)

Description

This function is a wrapper for the Committee.getTypes() method of the PVS API Committee class which returns the existing committee types.

Usage

Committee.getTypes()

Arguments

Value

  • A data frame with a row for each committee type and columns with variables describing the committee type. The returned data frame contains a row for each committee type and columns with the following variables describing the committee type: committeeTypes.type*.committeeTypeId, committeeTypes.type*.name.

References

http://api.votesmart.org/docs/Committee.html

Examples

Run this code
# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
pvs.key <- "yourkey"
# get the committee types
comtypes <- Committee.getTypes()
comtypes

Run the code above in your browser using DataLab