peaksGroup,proFIAset-method {proFIA} | R Documentation

## Return the peaks corresponding to a group.

### Description

Return the peaks corresponding ot a group given by his index.

### Usage

    ## S4 method for signature 'proFIAset'
    peaksGroup(object, index = NULL)

### Arguments

`object` | A proFIAset object.
`index` | A numeric vector r giving the group to be returned. NA are ignored.

### Value

The peaks in the given group, see `proFIAset-class`.

### Examples

    if(require(plasFIA)){
        data(plasSet)
        data(plasMols)

        #finding the molecules of plasMols
        vmatch<-findMzGroup(plasSet,mz=plasMols[,"mass_M+H"],tol=5)

        mol_peaks<-peaksGroup(plasSet,index=vmatch)
        head(mol_peaks)
    }

[Package proFIA version 1.6.0 Index]