R/convertMatrix.R

convert.matrix <-
function(X, m, td)
{
	warning("Use of convert.matrix is deprecated!");
	return(convertMatrix(X,m,td))
}

convertMatrix <-
function(X, m, td)
{
	#result <- c()
	#for (i in 1:dim(X)[2])
	#{
#		result <- rbind(result,codebook(X[,i],m))
#	}
#	return(result);	
	return( t(apply(X,2,codebook,m=m, t=td)) )
}

Try the pdc package in your browser

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

pdc documentation built on May 2, 2019, 9 a.m.