to_clipboard: Copy a formatted correlation table to the clipboard

View source: R/to_clipboard.r

to_clipboardR Documentation

Copy a formatted correlation table to the clipboard

Description

Copy a table for pasting into a spreadsheet or another application. This function requires an interactive R session and an available system clipboard. In scripts, use to_table() to get the formatted table instead.

Usage

to_clipboard(x, ...)

Arguments

x

A corx() object, matrix, or data frame. For a corx object, only the formatted table (x$apa) is copied, without the caption or note.

...

Additional arguments passed to clipr::write_clip().

Value

Invisibly returns the value from clipr::write_clip() (the original content by default, or the formatted text if return_new = TRUE).

See Also

to_table() to extract a table without using the clipboard.


corx documentation built on Nov. 25, 2026, 9:06 a.m.