writeFileWithHeader: Write Table to File With Header

Description Usage Arguments See Also

View source: R/utils.R

Description

Writes a table to a text file using the header from an existing file. This makes it easy to re-write data files into the same format as they were received.

Usage

1
2
3
4
5
6
7
8
writeFileWithHeader(
  x,
  file,
  sHeaderFile,
  nRowHeader = 3,
  sep = "\t",
  verbose = FALSE
)

Arguments

x

object to be written. Usually a data frame or matrix.

file

either a character string naming a file or a connection open for writing. "" indicates output to the console. See write.table.

sHeaderFile

string. Filename of a file to copy the header from

nRowHeader

integer. Default is 3. Number of rows in the header in the header file. This many rows will be copied from the header file and inserted at the top of the new file.

sep

string. Default is "\t" Values on each line of the file are separated by this character. see write.table.

verbose

boolean. Default is FALSE. TRUE prints more messages in console.

See Also

write.table read.table


fsaer/tirefittingr documentation built on May 15, 2020, 9:31 a.m.