R/index.preprocess.R

Defines functions index.preprocess

Documented in index.preprocess

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 29, 2017, 11:02 a.m.