Description Usage Arguments Value See Also Examples
View source: R/legiVotesJSON.R
Parses and arranges JSON data from Legiscan master data dumps vote subdirectory
1 |
file |
A JSON 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
;
legiscanBill
; legiscanPerson
;
legiscanVotes
; 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.