write.excel: This function exports a data.frame to a Excel file.

View source: R/inOutFiles.R

write.excelR Documentation

This function exports a data.frame to a Excel file.

Description

This function exports a data.frame to a Excel file.

Usage

write.excel(df, tags = NULL, colors = NULL, tabname = "foo", filename = NULL)

Arguments

df

An data.frame

tags

xxx

colors

xxx

tabname

xxx

filename

A character string for the name of the Excel file.

Value

A Excel file (.xlsx)

Author(s)

Samuel Wieczorek

Examples

utils::data(Exp1_R25_pept, package='DAPARdata')
df <- Biobase::exprs(Exp1_R25_pept[1:100])
tags <- GetMetacell(Exp1_R25_pept[1:100])
colors <- list('missing POV' = "lightblue",
               'missing MEC' = "orange",
               'recovered' = "lightgrey",
               'identified' = "white",
               'combined' = "red")
write.excel(df, tags, colors, filename = 'toto')

samWieczorek/DAPAR documentation built on May 6, 2022, 5:30 p.m.