update_senate_database: Download New Files and Update Local "Database" of Senate's...

Description Usage Arguments

View source: R/update_senate_database.R

Description

  1. If database/flows.fst exists, load a data frame from there

  2. 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

  3. Download one new file into downloads/senate/

  4. Read the downloaded file int a data frame containing data for both sites, Sophienwerder and Tiefwerder

  5. Row-bind the data frame read in 4) with the data frame loaded in 1) or read in 2)

  6. Save the data frame resulting from 5) in database/flows.fst as well as in database/flows.csv

Usage

1
update_senate_database(root = get_root(), dbg = 1)

Arguments

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


KWB-R/kwb.flusshygiene.app documentation built on July 18, 2021, 2:55 p.m.