exportPeakTable,proFIAset-method {proFIA} | R Documentation

## Export proFIAset as a peak table.

### Description

Export the data from a proFIAset object as a peak table which containes the values of measured for each variables for each samples and supplementary information.

### Usage

    ## S4 method for signature 'proFIAset'
    exportPeakTable(object, colgroup = c("mzMed",
      "corSampPeakMean", "meanSolvent", "signalOverSolventRatioMean", "timeShifted",
      "signalOverSolventPvalueMean"), mval = c("NA", "zero"), filename = NULL)

### Arguments

`object` | A proFIAset object.
`colgroup` | Labels corresponding to the column names of the group table which will be added to the peak table.
`mval` | How will missing values be treated, in default they will be set to NA, or you can keep 0.
`filename` | The name of the file for the peak table to be exported.

### Value

A dataframe containg the datasets.

### Examples

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

        #Creating the peak table
        ptable<-exportPeakTable(plasSet)
        head(ptable)

        #Directly in a file
        ## Not run: ptable<-exportPeakTable(plasSet,filename="peak_table.tsv")
    }

[Package proFIA version 1.12.0 Index]