mz: mz getter method

Description Usage Arguments Value Examples

Description

mz getter method

mz setter method

Usage

1
2
3
4
5
## S4 method for signature 'MassSpectra'
mz(object)

## S4 replacement method for signature 'MassSpectra'
mz(object) <- value

Arguments

object

of type MassSpectra

value

double mass to charge ratio

Value

MassSpectra object with updated mz slot

Examples

1
2
3
4
5
6
7
library(tofsimsData)
data(tofsimsData)
## access the mz values fo each spectra point
mz(testSpectra)[1:100]
## replace a mz value
mz(testSpectra)[1] <- 0.000025
mz(testSpectra)[1:100]

Example output

Loading required package: ProtGenerics

Attaching package:ProtGenericsThe following object is masked frompackage:stats:

    smooth

  [1] 0.000026 0.000030 0.000075 0.000307 0.004303 0.004785 0.005926 0.006259
  [9] 0.006331 0.014522 0.016527 0.019083 0.020298 0.027236 0.033936 0.035771
 [17] 0.052811 0.053615 0.056246 0.059255 0.059391 0.066952 0.080094 0.105140
 [25] 0.110321 0.134043 0.139942 0.177266 0.206006 0.213878 0.216473 0.237917
 [33] 0.250752 0.267345 0.272350 0.287706 0.315305 0.317171 0.368107 0.403509
 [41] 0.413680 0.418069 0.465549 0.477953 0.735626 0.818642 0.926090 0.997303
 [49] 0.997790 0.998571 0.998863 0.998961 0.999058 0.999449 0.999546 0.999741
 [57] 0.999839 0.999937 1.000034 1.000132 1.000230 1.000327 1.000425 1.000522
 [65] 1.000620 1.000718 1.000816 1.000913 1.001011 1.001109 1.001206 1.001304
 [73] 1.001401 1.001499 1.001597 1.001695 1.001792 1.001890 1.001988 1.002085
 [81] 1.002183 1.002281 1.002379 1.002476 1.002574 1.002672 1.002770 1.002867
 [89] 1.002965 1.003063 1.003161 1.003258 1.003356 1.003454 1.003552 1.003650
 [97] 1.003747 1.003845 1.003943 1.004041
  [1] 0.000025 0.000030 0.000075 0.000307 0.004303 0.004785 0.005926 0.006259
  [9] 0.006331 0.014522 0.016527 0.019083 0.020298 0.027236 0.033936 0.035771
 [17] 0.052811 0.053615 0.056246 0.059255 0.059391 0.066952 0.080094 0.105140
 [25] 0.110321 0.134043 0.139942 0.177266 0.206006 0.213878 0.216473 0.237917
 [33] 0.250752 0.267345 0.272350 0.287706 0.315305 0.317171 0.368107 0.403509
 [41] 0.413680 0.418069 0.465549 0.477953 0.735626 0.818642 0.926090 0.997303
 [49] 0.997790 0.998571 0.998863 0.998961 0.999058 0.999449 0.999546 0.999741
 [57] 0.999839 0.999937 1.000034 1.000132 1.000230 1.000327 1.000425 1.000522
 [65] 1.000620 1.000718 1.000816 1.000913 1.001011 1.001109 1.001206 1.001304
 [73] 1.001401 1.001499 1.001597 1.001695 1.001792 1.001890 1.001988 1.002085
 [81] 1.002183 1.002281 1.002379 1.002476 1.002574 1.002672 1.002770 1.002867
 [89] 1.002965 1.003063 1.003161 1.003258 1.003356 1.003454 1.003552 1.003650
 [97] 1.003747 1.003845 1.003943 1.004041

tofsims documentation built on Nov. 8, 2020, 5:10 p.m.