write.excel: Copy data to clipboard suitable for Excel pasting.

View source: R/functions.R

write.excelR Documentation

Copy data to clipboard suitable for Excel pasting.

Description

Copy data to clipboard suitable for Excel pasting.

Usage

write.excel(x, row.names = TRUE, col.names = TRUE, ...)

Arguments

x

vector, data.frame or matrix to copy.

row.names

copy with row names.

col.names

copy with column names.

Details

column names in copied object will be shifted one column left.

Value

nothing, just copy object to clipboard.

Examples

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)

DrrDom/pfpp documentation built on April 17, 2024, 10:24 a.m.