R/truncatevector.R

Defines functions truncatevector

Documented in truncatevector

truncatevector = function(V, left = 0, right = 100) {
  W = V[V >= left & V <= right]
  return(W)
}

Try the agrmt package in your browser

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

agrmt documentation built on Nov. 23, 2023, 1:07 a.m.