ecopy | R Documentation |
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.
ecopy(
x,
showrowcolnames = c("cols", "rows", "both", "none"),
show = FALSE,
buffer = 1024
)
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. |
buffer |
(Optional) Set clipboard buffer size. |
ecopy( iris, showrowcolnames = "cols", show = 'show' )
ecopy(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.