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 Jan. 5, 2024, 3:01 a.m.