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 Sept. 11, 2024, 6:15 p.m.