copy_df: Copy a data frame to clipboard for pasting in Excel

View source: R/copy_df.R

copy_dfR Documentation

Copy a data frame to clipboard for pasting in Excel

Description

This is a pipe-optimised function, and accompanies read_df() as a tool for ad-hoc analysis, which reads a data table copied from Excel into R.

Usage

copy_df(
  x,
  row.names = FALSE,
  col.names = TRUE,
  expand = "",
  quietly = FALSE,
  ...
)

Arguments

x

Data frame to be passed through. Cannot contain list-columns or nested data frames.

row.names

A logical vector for specifying whether to allow row names. Defaults to FALSE.

col.names

A logical vector for specifying whether to allow column names. Defaults to FALSE.

expand

Add number to manually expand clipboard size

quietly

Set this to TRUE to not print data frame on console

...

Additional arguments for write.table().


martinctc/surveytools documentation built on Nov. 21, 2024, 10:48 p.m.