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)
  	}

Try the made4 package in your browser

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

made4 documentation built on Nov. 8, 2020, 6:49 p.m.