R/xtile.R

xtile <- function(x, n) {
  cuts <- quantile(x, probs=seq(0,1,length=n+1))
  cut(x, breaks=cuts, include.lowest=TRUE)
}

Try the yapomif package in your browser

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

yapomif documentation built on May 2, 2019, 4:51 p.m.