writeResult {SIMAT} | R Documentation

## Write analysis results to file.

### Description

This funtion gets the anaylsis results and writes them in a csv format.

### Usage

    writeResult(runPeaks = list(), output.file.name = 'results.csv')

### Arguments

`runPeaks` | a list including the analysis results and targets information, e.g. acquired by `getPeak` function.
`output.file.name` | a character object, i.e. string, of the name of the output file in csv format.

### Details

As an input, the `runPeaks` object is a list of lists where each list, is the information for one run. The information for each run includes target information, and analysis results, e.g. apex and area location in time and their related intensities as well as estimated RI.

### Value

A logical value

### Author(s)

Mo R. Nezami Ranjbar

### References

http://omics.georgetown.edu/SIMAT.html

### See Also

`readCDF`, `getPeak`

### Examples

        # load an RData file including a single run data acquired by readCDF
        data(Run)

        # load targets information
        data(Targets)

        # get all the corresponding peaks of the target list
        runPeaks <- getPeak(Run = Run, Targets = Targets)

        # write analysis results into a csv file
        writeResult(runPeaks = runPeaks)

[Package SIMAT version 1.18.0 Index]