dct.to.vardefs: takes (some) stata .dct (dictionary) files and turns them...

Description Usage Arguments Value

Description

NOTE: this is by no means encyclopaedic. i've just tested this on the nicely-formatted .dct files that accompany the multiple cod files found at http://www.nber.org/data/vital-statistics-mortality-data-multiple-cause-of-death.html TODO * better solution for multiple variables * better error handling

Usage

1
  dct.to.vardefs(filename, remove.duplicates = TRUE)

Arguments

filename

the .dct file

remove.duplicates

should variables defined to start at the same column be removed? if so, first variable using a given start column is chosen (currently, simple.fwf can't handle them) this defaults to TRUE.

Value

the vardefs dataframe


dfeehan/dhstools documentation built on May 15, 2019, 5:12 a.m.