ezWrite.table: Modified version of write.table

View source: R/io.R

ezWrite.tableR Documentation

Modified version of write.table

Description

Modified version of write.table() with a different default. Best used together with ezRead.table().

Usage

ezWrite.table(
  values,
  file = file,
  head = "Identifier",
  row.names = TRUE,
  col.names = TRUE,
  append = FALSE,
  quote = FALSE,
  sep = "\t",
  na = "NA",
  digits = NA
)

Arguments

values

a vector, matrix of data.frame to write a table from.

file

the name of the output file.

head

the names of the header.

digits

the number of digits to round to, if rounding is desired.

Value

Returns a table written into a separate file.

Author(s)

Rehrauer, Hubert

Schmid, Peter

See Also

write.table

ezRead.table

Examples

m1 = matrix(seq(0.01, 1, 0.01), 10)
colnames(m1) = letters[1:10]
ezWrite.table(m1, "exampleTable", digits=1)

uzh/ezRun documentation built on April 14, 2024, 5:09 a.m.