write.excel {DAPAR} | R 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')

[Package DAPAR version 1.24.8 Index]