makeAccessor {rawrr} | 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]])