Last data update: 2014.03.03

R: Saves dataframe as tab-delimited text file with typical...
dfWriteDatR Documentation

Saves dataframe as tab-delimited text file with typical Curtin lab parameters

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

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, no 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

dfWriteDat(Ornstein, File="Test1.dat")
dfWriteDat(Ornstein, File="Test2.dat", SubID = 'ID')
dfWriteDat(Ornstein, File="Test3.dat", SubID = NULL)

Results