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

Description Usage Arguments Value

View source: R/read_nis.R

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 Sept. 2, 2017, 4:40 a.m.