dfWriteDat: Saves dataframe as tab-delimited text file with typical...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Saves a dataframe as a tab-delimited data file with standard Curtin lab format. Will add rownames as a first column in .dat file and label this column with SubID

Usage

1
dfWriteDat(Data, File, SubID = "SubID")

Arguments

Data

a dataframe

File

file name for .dat file

SubID

Name for new column with data from rownames. If NULL, rownames will not be added to .dat file) Default is 'SubID'

Details

Uses these parameters with write.table no append, quote, separator is tab, no rownames, yes for columnns.

Value

no return value but creates .dat file in current wd

Author(s)

John J. Curtin jjcurtin@wisc.edu

See Also

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

Examples

1
2
3
4
5
##Not run
##data(BAC)
##dfWriteDat(BAC, File="Test1.dat")
##dfWriteDat(BAC, File="Test2.dat", SubID = 'ID')
##dfWriteDat(BAC, File="Test3.dat", SubID = NULL)

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