wtht: Write a table to disk

Description Usage Arguments Details

View source: R/files.R

Description

A wrapper for write.table. By default this function: with column names; no row names; no quotation marks; tab separated columns.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
wtht(
  x,
  file,
  rowid.column = NULL,
  row.names = FALSE,
  col.names = TRUE,
  quote = FALSE,
  sep = "\t",
  ...
)

Arguments

x

data frame or matrix

file

detstination file

rowid.column

character, determines name of column that will hold row names. Leave NULL to use R's standard system, i.e. header with one fewer element than table body. Set to something, e.g. "rowname" to create a new column called "rowname" with the actual row names

row.names

logical, determines whether to write row names

col.names

logical, determines whether to write column names

quote

logical, determines quotation marks

sep

character, separator for columns

...

other parameters passed on to write.table

Details

The name is short for: (w)rite (t)able with (h)eader and (t)ab separated


tkonopka/shrt documentation built on March 5, 2020, 2:51 p.m.