getTimePoints: generic function to extract 'timePoints'-slot

Description Usage Arguments Examples

Description

generic function to extract timePoints-slot

Usage

1
2
3
4
5
getTimePoints(object, ...)

## S4 method for signature 'SpectraInTime'
getTimePoints(object, timePointsAlt = FALSE,
  timeUnit = "seconds")

Arguments

object

a S4 class object

...

additional parameters

timePointsAlt

logical indicator to get alternative (shifted) instead of recorded time points, defaults to FALSE

timeUnit

unit to use , choose between: seconds , minutes or hours, defaults equal to seconds

Examples

1
2
3
4
 spectra    <-  getSpectraInTimeExample()
 getTimePoints( spectra )
 getTimePoints( spectra , timePointsAlt = TRUE  )
 getTimePoints( spectra , timeUnit = "hours"  )

Example output

Attaching package: 'spectralAnalysis'

The following object is masked from 'package:BiocGenerics':

    normalize

The following object is masked from 'package:stats':

    smooth

  [1]     0   360   720  1080  1440  1800  2160  2520  2880  3240  3600  3960
 [13]  4320  4680  5040  5400  5760  6120  6480  6840  7200  7560  7920  8280
 [25]  8640  9000  9360  9720 10080 10440 10800 11160 11520 11880 12240 12600
 [37] 12960 13320 13680 14040 14400 14760 15120 15480 15840 16200 16560 16920
 [49] 17280 17640 18000 18360 18720 19080 19440 19800 20160 20520 20880 21240
 [61] 21600 21960 22320 22680 23040 23400 23760 24120 24480 24840 25200 25560
 [73] 25920 26280 26640 27000 27360 27720 28080 28440 28800 29160 29520 29880
 [85] 30240 30600 30960 31320 31680 32040 32400 32760 33120 33480 33840 34200
 [97] 34560 34920 35280 35640 36000
  [1] -10800 -10440 -10080  -9720  -9360  -9000  -8640  -8280  -7920  -7560
 [11]  -7200  -6840  -6480  -6120  -5760  -5400  -5040  -4680  -4320  -3960
 [21]  -3600  -3240  -2880  -2520  -2160  -1800  -1440  -1080   -720   -360
 [31]      0    360    720   1080   1440   1800   2160   2520   2880   3240
 [41]   3600   3960   4320   4680   5040   5400   5760   6120   6480   6840
 [51]   7200   7560   7920   8280   8640   9000   9360   9720  10080  10440
 [61]  10800  11160  11520  11880  12240  12600  12960  13320  13680  14040
 [71]  14400  14760  15120  15480  15840  16200  16560  16920  17280  17640
 [81]  18000  18360  18720  19080  19440  19800  20160  20520  20880  21240
 [91]  21600  21960  22320  22680  23040  23400  23760  24120  24480  24840
[101]  25200
  [1]  0.0  0.1  0.2  0.3  0.4  0.5  0.6  0.7  0.8  0.9  1.0  1.1  1.2  1.3  1.4
 [16]  1.5  1.6  1.7  1.8  1.9  2.0  2.1  2.2  2.3  2.4  2.5  2.6  2.7  2.8  2.9
 [31]  3.0  3.1  3.2  3.3  3.4  3.5  3.6  3.7  3.8  3.9  4.0  4.1  4.2  4.3  4.4
 [46]  4.5  4.6  4.7  4.8  4.9  5.0  5.1  5.2  5.3  5.4  5.5  5.6  5.7  5.8  5.9
 [61]  6.0  6.1  6.2  6.3  6.4  6.5  6.6  6.7  6.8  6.9  7.0  7.1  7.2  7.3  7.4
 [76]  7.5  7.6  7.7  7.8  7.9  8.0  8.1  8.2  8.3  8.4  8.5  8.6  8.7  8.8  8.9
 [91]  9.0  9.1  9.2  9.3  9.4  9.5  9.6  9.7  9.8  9.9 10.0

spectralAnalysis documentation built on May 1, 2019, 10:25 p.m.