View source: R/accessorFunctions.R
makeAccessor | R Documentation |
Make accessor function for key value pair returned by RawFileReader
makeAccessor(key, returnType = "integer")
key |
An object name found in instance of class |
returnType |
The type used for casting of values |
This function factory creates accessor functions for class
rawrrSpectrum
.
An accessor function
Tobias Kockmann, 2020
S <- readSpectrum(rawfile = sampleFilePath(), 1:10)
maxIonTime <- makeAccessor(key = "Max. Ion Time (ms):", returnType = "double")
maxIonTime(S[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.