parse_year_format: Download and parse Stata file for a specific NIS year.

Description Usage Arguments Value

Description

This function is used by read_nis. Given a year between 2004 and 2012, the function returns a dataframe containing four components describing each NIS variable that is provided for that year: (1) type, (2) name, (3) starting character number for fixed-width reading, (4) ending character number for fixed-width reading.

Usage

1
parse_year_format(file, file_year)

Arguments

file

This is the NIS file type that you would like to read. Choose one of c("core", "hospital", "dxpr", "severity")

file_year

The year that your NIS file comes from.

Value

A data.frame with four vectors, each describing the fixed-width NIS file from file_year


mustafaascha/nisr documentation built on May 23, 2019, 10:52 a.m.