R/makeRowProfiles.R

Defines functions makeRowProfiles

Documented in makeRowProfiles

makeRowProfiles <-
function(X,weights=NULL,masses=NULL,hellinger=FALSE){
	
	X_dimensions <- dim(X)
	colTotal <- colSums(X)
	rowTotal <- rowSums(X)
	grandTotal <- sum(X)
	
	if(hellinger){
		return(hellingerNorm(X,X_dimensions,colTotal,rowTotal,grandTotal,weights,masses))
	}else{
		return(caNorm(X,X_dimensions,colTotal,rowTotal,grandTotal,weights,masses))
	}

}

Try the ExPosition package in your browser

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

ExPosition documentation built on May 1, 2019, 7:06 p.m.