| range,OpenTIMS-method | R Documentation |
This is similar to using the from:to:by operator in Python.
## S4 method for signature 'OpenTIMS'
range(x, from, to, by = 1L, na.rm = FALSE)
x |
OpenTIMS data instance. |
from |
The first frame to extract. |
to |
The last+1 frame to extract. Frame with that number will not get extracted, but some below that number might. |
by |
Extract each by-th frame. |
na.rm |
Needed to comply with the generic. There should not be any NA frames, since the from and to are checked against the limits of the data. |
For the selected frames, a data.frame with columns 'frame', 'scan', 'tof' and 'intensity', one row per peak.
path.d = system.file("extdata", "test.d", package = "opentimsr")
setup_opensource()
D = OpenTIMS(path.d)
head(range(D, 1, 3)) # frames 1 and 2
head(range(D, 1, 3, 2)) # every second frame, i.e. only frame 1
CloseTIMS(D)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.