R/index.mat.generation.R

Defines functions index.mat.generation

Documented in index.mat.generation

index.mat.generation <-
function(word.vec,pos.vec){

	mat.index<-matrix(0,nrow=length(word.vec),ncol=length(pos.vec),dimnames=list(word.vec,pos.vec))
	flat.index<-cbind(1:length(mat.index),rep(word.vec,length(pos.vec)),rep(pos.vec,each=length(word.vec)))

	return(list(mat=mat.index,flat=flat.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.