exportPeakTable-proFIAset-method: Export proFIAset as a peak table.

Description Usage Arguments Value Examples

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

1
2
3
4
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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")
}

adelabriere/proFIA documentation built on July 12, 2019, 5:46 a.m.