View source: R/datalow_utils.r
toXL | R Documentation |
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
toXL(x, output = FALSE)
x |
a vector or matrix |
output |
- a boolean determining whether to print the object to the screen as well as the clipboard; defaults to FALSE |
Places the object 'x' into the clipboard ready for pasting
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.