Learn R Programming

RMassBank (version 2.0.0)

loadList: Load compound list for RMassBank

Description

Loads a CSV compound list with compound IDs

Usage

loadList(path, listEnv=NULL, check=TRUE)
resetList()

Arguments

path
Path to the CSV list.
listEnv
The environment to load the list into. By default, the namelist is loaded into an environment internally in RMassBank.
check
A parameter that specifies whether the SMILES-Codes in the list should be checked for readability by rcdk.

Value

No return value.

Details

The list is loaded into the variable compoundList in the environment listEnv (which defaults to the global environment) and used by the findMz, findCAS, ... functions. The CSV file is required to have at least the following columns, which are used for further processing and must be named correctly (but present in any order): ID, Name, SMILES, RT, CAS

resetList() clears a currently loaded list.

See Also

findMz

Examples

Run this code

##
## Not run: loadList("mylist.csv")

Run the code above in your browser using DataLab