R/IndexModify.R

IndexModify <-
function(index,obj.index,...){
	c <- ncol(index)
	id <- NULL
	for(i in 1:c){
		for(j in 1:c){
			k.id <- which(index[,i] == obj.index[j])
			id <- union(id,k.id)
		}
	}
	if(length(id)>0)index <- matrix(index[-id,],,c)
	return(index)
}

Try the CateSelection package in your browser

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

CateSelection documentation built on May 1, 2019, 10:11 p.m.