toXL: toXL copies a data.frame or matrix to the clipboard

Description Usage Arguments Value Examples

View source: R/cpuefuncs.r

Description

toXL copies a data.frame or matrix to the clipboard so one can then switch to Excel and just type <ctrl> + V to paste the data in place

Usage

1
toXL(x, output = TRUE)

Arguments

x

a vector or matrix

output

a boolean determining whether to print the object to the screen as well as the clipboard; defaults to TRUE

Value

Places the object 'x' into the clipboard ready for pasting

Examples

1
2
3
4
datamatrix <- matrix(data=rnorm(100),nrow=10,ncol=10)
colnames(datamatrix) <- paste0("A",1:10)
rownames(datamatrix) <- paste0("B",1:10)
toXL(datamatrix,output=TRUE)

haddonm/r4cpue documentation built on May 11, 2020, 1:31 a.m.