Description Usage Arguments Value Author(s) See Also Examples
View source: R/MassBankRecordeR.R
This function extracts the peak list from a MassBank record, returning
a variable containing the peak m/z, intensity and relative intensity entries. The
column names are either original, or adjusted to be more R-friendly. Use the function
getMBPeaksAnnos
to get peak lists with annotations.
1 | getMBRecordPeaks(MBrecord, fixColNames = FALSE)
|
MBrecord |
File name (and path) to a valid MassBank record file. |
fixColNames |
Default |
Returns a data frame containing peak data, or NULL
if the retrieval failed.
Emma Schymanski <emma.schymanski@uni.lu>, based on code from Erik Mueller.
getMBPeaksAnnos
, fixMzIntColNames
.
1 2 3 | MBrecord <- system.file("extdata","EA020161_Diclofenac.txt",package="ReSOLUTION")
getMBRecordPeaks(MBrecord, fixColNames = FALSE)
getMBRecordPeaks(MBrecord, fixColNames = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.