knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of esogettr is to make it easy to import data from ESO EHR data sources and manipulate it for use in data analytics, modeling, and reporting purposes.
How to import:
install_github("samuelkordik/ESO", auth_token="35476994d9ed123dc5722c5557c960b8bf7874c8")
esogettr expects ESO data to be downloaded from Ad Hoc to a single directory with the following specifications:
Importing ESO data:
library(esogettr) ## set file_root file_root <- get_file_root() ## set year and month year <- set_year() month <- set_month() ## import incidents (general function) incidents <- import_eso_data(year, month, "incidents") ## import incidents (specific function) incidents <- import_incidents(year, month)
Note that you have to set file_root first, as the path to the ESO data may vary based on machine, OS, or network. Years and months are passed as strings, and serve as the filter to get into the right flat file. I know, it's clunky.
Custom import functions ensure consistent typing, and more:
dtDate
for incident and month
, which is YYYY-MM formatvsDate
as date time fieldFILE ROOTS:
#file_root <- "C:/Users/skordik/Data/" #file_root <- "/Users/samuelkordik/Data/" #file_root <- "W:/Monthly ESO Data/"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.