shipunov (version 1.17.1)

Toclip: Insert content to Linux X11 clipboard

Description

Insert content to Linux X11 clipboard (uses 'xclip')

Usage

Toclip(x, sep="\t", row.names=FALSE, col.names=TRUE, ...)

Arguments

x

Data frame

sep

Separator, tab by default

row.names

FALSE by default

col.names

TRUE by default

...

Arguments to 'write.table()'

Author

Alexey Shipunov

Details

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.

Examples

Run this code
if (FALSE) {
aa <- data.frame(1:3) # Linux- (and X11-) specific
Toclip(aa) # then load the content into spreadsheet
}

Run the code above in your browser using DataLab