View source: R/update_senate_database.R
If database/flows.fst exists, load a data frame from there
If database/flows.fst does not exist, read all files in downloads/senate/ into a data frame and save this data frame in database/flows.fst as well as in database/flows.csv
Download one new file into downloads/senate/
Read the downloaded file int a data frame containing data for both sites, Sophienwerder and Tiefwerder
Row-bind the data frame read in 4) with the data frame loaded in 1) or read in 2)
Save the data frame resulting from 5) in database/flows.fst as well as in database/flows.csv
1 | update_senate_database(root = get_root(), dbg = 1)
|
root |
path to "root" folder below which to find subfolders "downloads" and "database" |
dbg |
debug level. The higher the value, the more verbose the output |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.