Skip to contents

The copy functions are wrappers for write.table() (and write.csv2()) with either file="clipboard-9999" (copy() and copy3()) or file="gentleman_out.txt" (copy2()).

Usage

copy(tbl)

copy2(tbl)

copy3(tbl)

Arguments

tbl

Object to be written

Details

  • copy(): Wrapper for write.csv2() to clipboard with file="clipboard-9999". Ideal for copy-pasting a data.frame into Excel in non-English locale.

  • copy2(): Wrapper for write.table() to disk with file="gentleman_out.txt". This writes the table to a text file in the current directory.

  • copy3(): wrapper for write.table() to clipboard with file="clipboard-9999", sep="\t" (tab-delimited), and quote=FALSE. Ideal for copy-pasting a data.frame into a text file.

Examples

df |> copy()
if (FALSE) df |> copy2()
df |> copy3()