Learn R Programming

SIM (version 1.42.0)

putTargetTable: Put target table information

Description

Asssuming that the targets are provided in a NIST mass spectral library, i.e. MSL, format, this function reads the list of targets and the related information.

Usage

putTargetTable(target.table = list(), target.table.file.name = character())

Arguments

target.table
a list containing the target table information, e.g. obtained using getTargetTable.
target.table.file.name
a string including the full name of a text file including the target compounds information.

Value

  • A logical value

Details

This function writes the target table information in a csv file so the user can open the results in text and table editors.

References

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

See Also

getTargetTable

Examples

Run this code
# load the target table information
    data(target.table)

    # create a subset of the table
    target.table.sub <- list()
    target.table.sub$compound <- target.table$compound[1:2]
    target.table.sub$ms <- target.table$ms[1:2]
    
    # write the subset into a csv file
    putTargetTable(target.table = target.table.sub, 
                    target.table.file.name = "TargetTableSub.csv")

Run the code above in your browser using DataLab