Toclip | R Documentation |
Insert content to Linux X11 clipboard (uses 'xclip')
Toclip(x, sep="\t", row.names=FALSE, col.names=TRUE, ...)
x |
Data frame |
sep |
Separator, tab by default |
row.names |
FALSE by default |
col.names |
TRUE by default |
... |
Arguments to 'write.table()' |
Linux-specific. Inserts data frame to Linux X11 clipboard (not primary or secondary). Useful for interface with spreadsheets.
Works if 'xclip' utility is already installed.
Alternative with more flexibility: 'clipr' package.
Alexey Shipunov
## Not run: aa <- data.frame(1:3) # Linux- (and X11-) specific Toclip(aa) # then load the content into spreadsheet ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.