ecopy {easyr}R Documentation

Copy to Clipboard

Description

Copies a data.frame or anything that can be converted into a data.frame. After running this, you can use ctrl+v or Edit > Paste to paste it to another program, typically Excel. A simple use case would be ecopy(names(df)) to copy the names of a data frame to the clipboard to paste to Excel or Outlook. Author: Scott Sobel. Tech Review: Bryce Chamberlain.

Usage

ecopy(x, showrowcolnames = c("cols", "rows", "both", "none"), show = FALSE)

Arguments

x

Object you'd like to copy to the clipboard.

showrowcolnames

(Optional) Show row and column names. Choose 'none', 'cols', 'rows', or 'both'.

show

(Optional Boolean) Set to 'show' if you want to also print the object to the console.

Examples

ecopy( iris, showrowcolnames = "cols", show = 'show' )
ecopy(iris)

[Package easyr version 0.5-8 Index]