- chamber
(Optional) Which chamber to get data for. Options are:
"all"
, "congress"
, "hs"
: Both House and Senate data (the default).
"house"
, "h"
, "hr"
: House data only.
"senate"
, "s"
, "sen"
: Senate data only.
These options are case-insensitive. If you explicitly pass a different value,
it will default to "all" with a warning.
Note that presidents are included in all datasets. Therefore, reading both "house"
and "senate"
data will duplicate data on the presidents. The recommended way to get
all data is to use the default argument, "all"
.
- congress
(Optional) A whole number (to get data for a single Congress), or
a numeric vector (to get data for a set of congresses).
If not provided, will retrieve data for all Congresses by default.
If specified, Congress numbers cannot be greater than the current_congress()
(i.e., you cannot try to get future data).
- local_path
(Optional) A file path for reading from a local file. If no
local_path
is specified, will read data from the Voteview website.