excel: Export data frame to Excel

View source: R/excel.r

excelR Documentation

Export data frame to Excel

Description

This function dumps a data frame into a temporary tab-delimited table and opens an Excel session for the file.

Usage

excel(x, ...)

## Default S3 method:
excel(x, ...)

## S3 method for class 'data.frame'
excel(x, header = TRUE, row.names = FALSE, ...)

Arguments

x

Data frame.

...

Further arguments passed onto the write.table function.

header

Logical value specifying whether data frame column names should be exported.

row.names

Logical value specifying whether data frame row names should be exported.

Methods (by class)

  • excel(default): Default 'excel' method.

  • excel(data.frame): Export data frame to MS Excel.

Examples

## Not run: 
# Send a vector to Excel:
#' excel(1:10)

# Send a 25 x 4 matrix of random numbers to Excel, with no headers:
x <- matrix(runif(100), ncol = 4)
excel(x, header = FALSE)

## End(Not run)

TobieSurette/gulf.utils documentation built on Dec. 1, 2024, 6:01 a.m.