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, that feeds into wpa::export(), but can be used as a stand-alone function.

Based on the original function from https://github.com/martinctc/surveytoolbox.

Usage

copy_df(x, row.names = FALSE, col.names = TRUE, 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.

quietly

Set this to TRUE to not print data frame on console

...

Additional arguments for write.table().

Value

Copies a data frame to the clipboard with no return value.

See Also

Other Import and Export: create_dt(), export(), import_to_fst(), import_wpa(), standardise_pq()


wpa documentation built on Aug. 21, 2023, 5:11 p.m.

Related to copy_df in wpa...