utils_data: Utilities for data Copy-Pasta

utils_dataR Documentation

Utilities for data Copy-Pasta

Description

[Stable]

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 utils::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

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com


metan documentation built on March 7, 2023, 5:34 p.m.