R/select.range.R

"select.range" <- function (data, groupvec, min, max) {
  min.cond <- (groupvec >= min)
  max.cond <- (groupvec < max)
  cond <- min.cond & max.cond
  return(data[cond])
}

Try the cwhmisc package in your browser

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

cwhmisc documentation built on May 1, 2019, 7:55 p.m.