R/DissTot.R

Defines functions DissTot

Documented in DissTot

################################################################
#_________________    Function  DissTot    ____   ______________
#           Generates the overall matrix of dissimilarities
################################################################

DissTot<-function(Part){
  
  if (!class(Part)=="SortingPartition"){
    return("The argument is not an object of class SortingPartition")
  }  
  else
  {
    ListDissim<-Dissimil(Part)
    MatDissimTot<-apply(simplify2array(ListDissim),c(1,2),'sum') 
    rownames(MatDissimTot)<-Part@LabStim
    colnames(MatDissimTot)<-Part@LabStim
    
    return(MatDissimTot)
  }
} 

Try the FreeSortR package in your browser

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

FreeSortR documentation built on May 2, 2019, 2:47 p.m.