R/ClusterNMI.R

Defines functions ClusterNMI

Documented in ClusterNMI

ClusterNMI=function(Cls1,Cls2,Variant="max"){

    if(requireNamespace("aricode",quietly = TRUE)){
      nmi=aricode::NMI(Cls1, Cls2,variant = Variant)
      
      return(nmi)
    }else{
      warning("ClusterNMI:: Subordinate  package (aricode) is missing.
                  Please install the package which is defined in 'Suggests'.")
      return(
        "Subordinate  package (aricode) is missing.
                  Please install the package which is defined in 'Suggests'."
      )
      
      
    }
  
}

Try the FCPS package in your browser

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

FCPS documentation built on Nov. 5, 2025, 7:44 p.m.