Description Usage Arguments Value See Also Examples
Checks the file heading to identify XML vs JSON content and appends the appropriate class to the object.
1 | xjformat(x)
|
x |
The result from the API call |
Returns the result object with additional class attributes
Other Parsing and Cleaning LegiScan Data: billids;
fileLists; fileStructure;
getFullText; legiBillHist;
legiBillJSON; legiBillMeta;
legiBillProg; legiBillSpons;
legiBillTxt; legiPersonJSON;
legiVotesJSON; legiscanBill;
legiscanPerson; legiscanVotes
1 2 3 4 5 6 7 8 | ## Not run:
# Use getURL from RCurl to make the API call
statelist <- getURL(requestURL)
# Determine if statelist object is XML or JSON
statelist <- xjformat(statelist)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.