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)
  }
}

Try the eatTools package in your browser

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

eatTools documentation built on May 29, 2024, 6:03 a.m.