R/seq2.R

Defines functions seq2

Documented in seq2

seq2 <- function(from, to) {
  checkmate::assert_numeric(from, len = 1)
  checkmate::assert_numeric(to, len = 1)
  if (from > to) {
    integer()
  }
  else {
    seq.int(from, to)
  }
}
weirichs/eatTools documentation built on April 3, 2024, 6:11 p.m.