groupnames,XCMSnExp-method {xcms} | R Documentation

## Generate unique group (feature) names based on mass and retention time

### Description

`groupnames` generates names for the identified features from the correspondence analysis based in their mass and retention time. This generates feature names that are equivalent to the group names of the old user interface (aka xcms1).

### Usage

    ## S4 method for signature 'XCMSnExp'
    groupnames(object, mzdec = 0, rtdec = 0,
      template = NULL)

### Arguments

`object` | `XCMSnExp` object containing correspondence results.
`mzdec` | `integer(1)` with the number of decimal places to use for m/z ( defaults to `0`).
`rtdec` | `integer(1)` with the number of decimal places to use for the retention time (defaults to `0`).
`template` | `character` with existing group names whose format should be emulated.

### Value

`character` with unique names for each feature in `object`. The format is `M(m/z)T(time in seconds)`.

### See Also

XCMSnExp.

[Package xcms version 3.2.0 Index]