R/dudi.rwcoa.R

"dudi.rwcoa" <-
function(df,  rowweights = rep(1/nrow(df),nrow(df)) , ...) {
        # Row weighted COA, calls forrwcoa function
     	if (!is.data.frame(df))
	 	stop("data.frame expected")
        
    	rwcoa<-dudi.coa(forrwcoa(df, rowweights=rowweights), ...)
        class(rwcoa)<-c("rwcoa", class(rwcoa))              
    	return(rwcoa)
  	}
SamGG/made4 documentation built on Sept. 29, 2020, 1:33 p.m.