R/washout.R

Defines functions washout

Documented in washout

washout <-
function(x, washcol, method = "index") {
  if (method == "value") {
    washvec = cut(x,length(washcol),labels = FALSE)
  } else if (method == "index") {
    washvec = cut(1:length(x), length(washcol), labels = FALSE)
  } else {break}
  washout = washcol[washvec]
  washout
}

Try the phalen package in your browser

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

phalen documentation built on May 29, 2017, 4:22 p.m.