collapseDataset {phantasus} | R Documentation

## Collapse dataset

### Description

`collapseDataset` performs a collapse action on expression set

### Usage

    collapseDataset(es, isRows = TRUE, selectOne = FALSE, fn, fields,
      removeEmpty = TRUE)

### Arguments

`es` | Expression set
`isRows` | Work with rows. False if columns (default True - row mode)
`selectOne` | select best match or merge duplicates
`fn` | select/merge function
`fields` | fields to unique on
`removeEmpty` | remove unannotated genes

### Value

Nothing. Collapsed dataset will be assigned to es in environment

### Examples

    ## Not run:
    es <- getGSE('GSE53986')[[1]]
    collapseDataset(es, isRows = TRUE, selectOne = TRUE,
    fn = mean, fields = c('Gene ID', 'Gene symbol'))

    ## End(Not run)

[Package phantasus version 1.4.0 Index]