R/fillcomb.R

Defines functions fillcomb

Documented in fillcomb

fillcomb <-
function(r){

out<-matrix(0,ncol(r),max(r))

for(i in 1:ncol(r)){
	out[i,r[,i]]<-1
}

out
}

Try the abctools package in your browser

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

abctools documentation built on Sept. 18, 2023, 5:14 p.m.