Learn R Programming

rtimes (version 0.3.0)

cg_membersponsorcompare: Compare bill sponsorship between two members who served in the same Congress and chamber.

Description

Compare bill sponsorship between two members who served in the same Congress and chamber.

Usage

cg_membersponsorcompare(memberid_1 = NULL, memberid_2 = NULL, congress_no = NULL, chamber = NULL, key = NULL, ...)

Arguments

memberid_1
The member's unique ID number (alphanumeric). To find a member's ID number, get the list of members for the appropriate House or Senate. You can also use the Biographical Directory of the United States Congress to get a member's ID. In search results, each member's name is linked to a record by index ID (e.g., http://bioguide.congress.gov/scripts/biodisplay.pl?index=C001041). Use the index ID as member-id in your request.
memberid_2
See description for memberid_1.
congress_no
The number of the Congress during which the members served.
chamber
One of 'house' or 'senate.
key
your New York Times API key; pass in, or loads from .Rprofile as nytimes_cg_key, or from .Renviron as NYTIMES_CG_KEY
...
Curl options (debugging tools mostly) passed to GET

Value

Compare bill sponsorship between two members who served in the same Congress and chamber.

Examples

Run this code
## Not run: 
# cg_membersponsorcompare('S001181', 'A000368', 112, 'senate')
# ## End(Not run)

Run the code above in your browser using DataLab