writeResult: Write analysis results to file.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/writeResult.R

Description

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

Usage

1
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

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

SIMAT documentation built on Nov. 8, 2020, 8:27 p.m.