Learn R Programming

Kmisc (version 0.5.0)

write.cb: Write Tabular Data to the Clipboard

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

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