import_eso_data: Import ESO Table

Description Usage Arguments Details Value Functions Examples

View source: R/import_eso_functions.R

Description

Works with consistent naming conventions to simplify importing the monthly data table export. See vignette("importing-pcrs") for more information.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
import_eso_data(year, month = FALSE, table_name)

import_personnel(year, month = FALSE)

import_patients(year, month = FALSE)

import_incidents_by_time(start, end)

import_treatments(year, month = FALSE)

import_stroke(year, month = FALSE)

import_narrative(year, month = FALSE)

import_cpr(year, month = FALSE)

Arguments

year

Year of data set as "YYYY" string

month

Month of data set as "MM" string, or FALSE to look for full year.

table_name

string of table name to find file.

Details

Requires file_root to be present in the environment.

Value

Tibble with imported data

tibble of imported data

Functions

Examples

1
2
import_eso_data("2020", "02", "Personnel") # Imports one month
import_eso_data("2020", FALSE, "Personnel") # Imports an entire year

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