Learn R Programming

metan (version 1.7.0)

utils_data: Utilities for data Copy-Pasta

Description

These functions allows interacting with the system clipboard. It is possible read from the clipboard or write a data frame or matrix to the clipboard.

  • clip_read() read data from the clipboard.

  • clip_write() write data to the clipboard.

Usage

clip_read(header = TRUE, sep = "\t", ...)

clip_write(.data, sep = "\t", row_names = FALSE, col_names = TRUE, ...)

Arguments

header

If the copied data has a header row for dataFrame, defaults to TRUE.

sep

The separator which should be used in the copied output.

...

Further arguments to be passed to read.table().

.data

The data that should be copied to the clipboard. Only data frames and matrices are allowed

row_names

Decides if the output should keep row names or not, defaults to FALSE.

col_names

Decides if the output should keep column names or not, defaults to TRUE.

Value

Nothing