.clusterAggregateAndSum {CAGEr} | R Documentation

## Aggregate identical clusters and sum their scores.

### Description

Private function using `data.table` objects to preform grouping operations at a high performance. These functions use non-standard evaluation in a context that raises warnings in `R CMD check`. By separating these functions from the rest of the code, I hope to make the workarounds easier to manage.

### Usage

    .clusterAggregateAndSum(clusters, key)

    ## S4 method for signature 'data.table'
    .clusterAggregateAndSum(clusters, key)

    ## S4 method for signature 'data.frame'
    .clusterAggregateAndSum(clusters, key)

    ## S4 method for signature 'GRanges'
    .clusterAggregateAndSum(clusters, key)

### Arguments

`clusters` | Clusters to be aggregated. `data.frame`, or `GRanges`, which will be coerced to `data.frame`.
`key` | Name of the column containing the factor used to aggregate the clusters.

[Package CAGEr version 2.0.2 Index]