find_data_version: Determine Data Version Number

View source: R/HCUP_timemap_funs.R

find_data_versionR Documentation

Determine Data Version Number

Description

Determine Data Version Number

Usage

find_data_version(path, file_type, data_source, state, year)

Arguments

path

(Character) Path to CORE 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

Value

a vector of length 1 with the version number of the data located at path based on the observed line-length and the expected line length for the different versions of data provided for data_source, state and year. A version of 0 denotes the current version while values of -1, -2 and so on denote versions 1, 2 and so on.


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