copy_cb: Write a data frame to the clipboard.

Description Usage Arguments Examples

View source: R/copy_cb.R

Description

This function is a wrapper around write.table, essentially setting its file parameter to pipe("pbcopy").

Usage

1
copy_cb(x, sep = ";", col.names = T)

Arguments

x

the object to be written, preferably a matrix or data frame. If not, it is attempted to coerce x to a data frame.

sep

the field separator string. Values within each row of x are separated by this string.

col.names

either a logical value indicating whether the column names of x are to be written along with x, or a character vector of column names to be written. See the section on ‘CSV files’ for the meaning of col.names = NA.

Examples

1
2
3
4

matt-jay/rjaytools documentation built on May 28, 2019, 8:45 a.m.