View source: R/readDW_NOMINATE.R
readDW_NOMINATE | R Documentation |
Read the DW-NOMINATE data
from their website using read_csv
,
adding a Year
= 2*congress+1787
, which is the
first year of each 2-year congress.
readDW_NOMINATE(file=
"https://voteview.com/static/data/out/members/HSall_members.csv",
...)
file |
|
... |
optional arguments for |
This is written to make it easy for users to
download the DW-NOMINATE
data from their
website, assuming it should be easier to remember
readDW_NOMINATE
than
readr::read_csv("https://voteview.com/static/data/out/members/HSall_members.csv")
.
a tibble
with columns
congress |
|
chamber |
|
icpsr |
|
state_icpsr |
|
district_code |
|
state_abbrev |
Either 'USA' or a 2-letter abbreviation for this state in the US. |
party_code |
positive |
occupancy , last_means |
|
bioname |
|
bioguide_id |
|
born , died |
|
nominate_dim1 , nominate_dim2 |
|
nominate_log_likelihood |
|
nominate_goe_mean_probabilty |
|
nominate_number_of_votes |
|
nominate_number_of_errors |
|
conditional |
|
nokken_poole_dim1 , nokken_poole_dim2 |
|
Year |
|
Spencer Graves
Embedded in an R Markdown vignette
by UCLA political science professor Jeff Lewis
in the voteview
project on 'GitHub'.
Timothy P. Nokken and Keith T. Poole (2004) "Congressional Party Defection in American History." Legislative Studies Quarterly, 29:545-568,.
Keith T. Poole (2005) Spatial models of parliamentary voting (Cambridge U. Pr.).
read_csv
# Wrap in try(...) so it won't throw an error
# if the Voteview website is not available.
Nominate <- try(readDW_NOMINATE())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.