parse_data: Parse ASCII Files

View source: R/HCUP_timemap_funs.R

parse_dataR Documentation

Parse ASCII Files

Description

Parse ASCII Files

Usage

parse_data(path, file_type, data_source, state, year, n_max = Inf)

Arguments

path

(Character) Path to ASCII file

file_type

(Character) Which file to parse (e.g., core, ahal, severity)

data_source

(Character) The data set source, either SEDD or SID

state

(Character) Two-letter abbervation for the desired state

year

(Character) Typically, a four digit expression of desired year but may be 2015q1q3 or 2015q4 to accomdate the switch from ICD-9 to ICD-10 on 2015/10/01

n_max

(Numeric) Number of rows to read in. Defaults to infinity. Useful for testing.

Value

A tibble of the parsed data from the data located at path using the parameters detailed by file_type, data_source, state, year and the version guessed by find_data_version().


aarmiller/delaySim documentation built on Jan. 2, 2023, 11:23 p.m.