R/group.ix.R

Defines functions group.ix

Documented in group.ix

###############################################################################
# TANOVA: test.R
# 
# TODO: Add comment
#
# Author: Weihong
# Mar 20, 2009, 2009
###############################################################################
group.ix<-function(f1,f2){
	n1<-nlevels(as.factor(f1))
	n2<-nlevels(as.factor(f2))
	ix<-list()
	k<-1
	for (i in 1:n1){
		for (j in 1:n2){
			ix[[k]]<-which(f1==i & f2==j)
			k<-k+1
		}
	}
	return (ix)
}

Try the TANOVA package in your browser

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

TANOVA documentation built on May 29, 2017, 12:31 p.m.