etl_load.etl_covid: Load COVID-19 Data into PostgreSQL Database

Description Usage Arguments

View source: R/etl_load.R

Description

etl_load takes files saved in the load folder to be prepared for loading into a PostgreSQL database. Users must use the db_con argument to specify a database connection. Users can supply month, day, and year arguments to load a specific subset of data into their database. When no arguments are specified all data in the load folder will be uploaded. It is important to be aware that etl_load is written so that duplicate entries of data are updated like a SQL upsert.

Usage

1
2
## S3 method for class 'etl_covid'
etl_load(obj, db_con, month, day, year, ...)

Arguments

obj

an etl object

db_con

A connection to a PostgreSQL database

month

numeric vector specifying month(s)

day

numeric vector specifying day(s)

year

numeric vector specifying year(s)

...

arguments passed to methods


madisonvolpe/covid documentation built on May 15, 2020, 5:43 a.m.