Description Usage Arguments Details Value Author(s) See Also Examples
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
1 | dfWriteDat(Data, File, SubID = "SubID")
|
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' |
Uses these parameters with write.table no append, quote, separator is tab, no rownames, yes for columnns.
no return value but creates .dat file in current wd
John J. Curtin jjcurtin@wisc.edu
read.table(), read.delim(), write.table()
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.