Write Tabular Data to the Clipboard

Share:

Description

Directs output of write.table to the clipboard. This can be useful if you want to quickly write some R table out and paste it into some other file, eg. a Word document, Excel table, and so on.

Usage

1
2
write.cb(dat, row.names = FALSE, col.names = TRUE, sep = "\t",
  quote = FALSE)

Arguments

dat

the data file you want to write out; passed to write.table.

row.names

logical. include the row names of dat?

col.names

logical. include the column names of dat?

sep

the delimiter used to separate elements after exporting dat.

quote

logical. include quotes around character vectors in dat?

See Also

write.table

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.