read.dat: Reads survey and header data from .dat file with one Employer...

Description Usage Arguments Value Examples

View source: R/ReadingDatFiles.R

Description

Returns an R object, of type CtrDat-class, with survey and header data from a .dat file. It also preforms validation as described in validate.dat.header

Usage

1
read.dat(Path, RemoveFiller = TRUE)

Arguments

Path

File path to a .dat file

RemoveFiller

A boolean indicating if the filler fields should be removed

Value

An S4 object, CtrDat-class, with the Employer Id, information from the header of the dat file, the survey data, a logical value indicating if filler has been removed.

Examples

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

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