fwrite_header: writes a data frame with a header

View source: R/utils.R

fwrite_headerR Documentation

writes a data frame with a header

Description

writes a data frame with a header

Usage

fwrite_header(
  data,
  file,
  header,
  sep = ",",
  col_names = FALSE,
  append = FALSE,
  scipen = 20,
  ...
)

Arguments

data

data frame

file

output file name

header

string with the header

sep

The separator between columns. Default is ",".

col_names

write column names

append

append to an existing file

scipen

integer In terms of printing width, how much of a bias should there be towards printing whole numbers rather than scientific notation? See Details.

...

Arguments passed on to tgutil::fwrite

Examples

## Not run: 
fwrite_header(mtcars, file = tempfile(), header = "# this is a header", sep = "\\t")

## End(Not run)


tanaylab/misha.ext documentation built on Oct. 1, 2024, 10:55 a.m.