# Merge TSS samples

`mergeSamples.Rd`

Merges individual samples within TSSr object into specified groups.

    mergeSamples(object, mergeIndex)

    # S4 method for TSSr
    mergeSamples(object, mergeIndex = NULL)

## Arguments

object | A TSSr object
mergeIndex | Integer vector specifying which samples to be merged

## Examples

    # \donttest{
    mergeSamples(exampleTSSr, mergeIndex = c(1,1,2,2))#> Error in `[.data.table`(tss, , .SD, .SDcols = sampleLabels[which(mergeIndex ==     i)]): Some items of .SDcols are not column names: [SL01, SL02]# }