Description Usage Arguments Value See Also Examples
View source: R/legiscanVotes.R
Parses and arranges XML dumps from Legiscan master data dumps vote subdirectory
1 |
file |
An XML file object from the vote subdirectory |
Creates a list object containing a data frame for voting metadata and individual legislators' votes
Other Parsing and Cleaning LegiScan Data: billids;
fileLists; fileStructure;
getFullText; legiBillHist;
legiBillJSON; legiBillMeta;
legiBillProg; legiBillSpons;
legiBillTxt; legiPersonJSON;
legiVotesJSON; legiscanBill;
legiscanPerson; xjformat
1 2 3 4 5 6 7 8 | # Create directory object
directoryTree <- fileStructure("data/msHistoricalJSON/")
# Create file list object
files <- fileLists(directoryTree)
# Parse/clean the voting records data from a LegiScan votes file
votes <- legiscanVotes(files[["votes"]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.