Description Usage Arguments Details Value Examples
View source: R/find_json_path.R
Helper function to find paths to json files saved locally, before using the various parsing functions in this package to process the data.
1 | find_json_path(base_dir, file_type)
|
base_dir |
Character vector of the directory where the json files are stored locally |
file_type |
Character. Accepts |
Note: This function determines file type ("bill", "people", "vote", or "text")
by looking at sub-directories, thus the json files will need to be saved in the
approriate folder, e.g. bill json files need to be saved as xxx/bill/file.json
,
vote json files will need to be saved as xxx/vote/file.json
.
This should not be a problem if the files are unzipped directly from LegiScan bulk dataset.
A vector of paths to local json file
1 2 3 4 5 | ## Not run:
find_json_path(base_dir = "data", "bill")
find_json_path(base_dir = "data", "vote")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.