write.excel | R Documentation |
Copy data to clipboard suitable for Excel pasting.
write.excel(x, row.names = TRUE, col.names = TRUE, ...)
x |
vector, data.frame or matrix to copy. |
row.names |
copy with row names. |
col.names |
copy with column names. |
column names in copied object will be shifted one column left.
nothing, just copy object to clipboard.
a <- 1:10
names(a) <- LETTERS[1:10]
## Not run: write.excel(a)
b <- data.frame(V1 = 1:10, V2 = rnorm(10), row.names = LETTERS[1:10])
## Not run: write.excel(b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.