tests/testthat/test_snr-methods.R

context("snr")

s <- createMassPeaks(mass=1:10, intensity=11:20, snr=rep(2, 10))

test_that("snr", {
  expect_identical(snr(s), rep(2, 10))
})

Try the MALDIquant package in your browser

Any scripts or data that you put into this service are public.

MALDIquant documentation built on March 31, 2023, 10:40 p.m.