View source: R/HCUP_timemap_funs.R
find_data_version | R Documentation |
Determine Data Version Number
find_data_version(path, file_type, data_source, state, year)
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.