binning_search<-function(v,start,end){
m<-length(v)
b<-numeric(m)
nbin=length(start)
for (kk in 1:nbin){
b[which(v>start[kk] & v<=end[kk])]=kk
}
return(b)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.