knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

esogettr

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.

Installation

How to import:

install_github("samuelkordik/ESO", auth_token="35476994d9ed123dc5722c5557c960b8bf7874c8")

Data Sources

ESO Data

esogettr expects ESO data to be downloaded from Ad Hoc to a single directory with the following specifications:

Getting Started

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:

ESO Data Transformations

Utilities

Notes

FILE ROOTS:

#file_root <- "C:/Users/skordik/Data/"
#file_root <- "/Users/samuelkordik/Data/"
#file_root <- "W:/Monthly ESO Data/"


samuelkordik/esogettr documentation built on Dec. 22, 2021, 10:13 p.m.