read.dat.headers: Reads the headers of a .dat file

Description Usage Arguments Value Examples

View source: R/ReadingDatFiles.R

Description

LOWER LEVEL FUNCTION - Not meant to be called on its own.

It returns a data frame with .dat data formatted for headers. All data, including survey data, will be in the data frame. This may be used to pull a list of all employer IDs in a .dat file.

Usage

1
read.dat.headers(Path, RemoveFiller = TRUE, OnlyFirstHeader = FALSE)

Arguments

Path

File path to a .dat file

RemoveFiller

A boolean indicating if the filler fields should be removed

OnlyFirstHeader

A boolean indicating if only the first line of the header should be returned. Useful for working with .dat files with only one employer ID.

Value

A data frame with information formatted using the header schema from a .dat file

Examples

1
read.dat.header("c:/example/example/datfile.dat")

ptddatateam/dat_file_r_package documentation built on Nov. 5, 2019, 1:56 a.m.