R/zzz.R

Defines functions is_blank is_between

is_between <- function(x, a, b) {
  x >= a & x <= b
}

# Return TRUE if eem is a blank sample

is_blank <- function(eem) {
  blank_names <- paste("nano", "miliq", "milliq", "mq", "blank", sep = "|")

  grepl(blank_names, eem$sample, ignore.case = TRUE)
}

Try the eemR package in your browser

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

eemR documentation built on April 4, 2025, 2:38 a.m.