R/index.preprocess.R

index.preprocess <-
function(mat.seq,word){

	mat.index<-matrix(0,nrow=nrow(mat.seq),ncol=word*4)

	for(t in 1:nrow(mat.seq)){
		mat.index[t,unlist(mat.seq[t,4+(1:word)])]<-1
	}

	return(mat.index)
}

Try the GCAI.bias package in your browser

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

GCAI.bias documentation built on May 1, 2019, 8:18 p.m.