utils_data function

Utilities for data Copy-Pasta

Utilities for data Copy-Pasta

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.
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.

Returns

Nothing

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com