dfReadDat: Opens a tab-delimited dat file with typical Curtin lab...

Description Usage Arguments Value Author(s) See Also Examples

Description

Opens a tab-delimited data file with standard Curtin lab format which include using a header and setting delimiter to tab and as.is=TRUE

If variable named SubID (default) or other text supplied by SubID variable exists in dat file, row names will be set with this variable and then variable is removed from new data frame.

Usage

1
dfReadDat(File, SubID = "SubID", SubIDDigits = NULL)

Arguments

File

File name for .dat file including extension

SubID

String to indicate name of SubID variable. Default is 'SubID'. If set to NULL, rownames will not be altered

SubIDDigits

Length of SubID rowname string. If NULL, will be set to max length in data

Value

returns a data frame

Author(s)

John J. Curtin jjcurtin@wisc.edu

See Also

read.table(), read.delim(), write.table(), dfRownames()

Examples

1
2
##dfReadDat('Sample1.dat)   #not executable unless Sample1.dat exists in path
##dfReadDat('Sample2.dat, SubID = 'subnum')   #not executable unless Sample2.dat exists in path

lmSupport documentation built on May 2, 2019, 2:14 p.m.