Learn R Programming

DynComm (version 2020.1.6)

select: select(postProcessing, id)

Description

This method allows for the selection of which result should be shown. Any of the post processing algorithms and the main algorithm can be choosen.

Usage

DynComm.select(dyncomm,postProcessing, id)

Arguments

dyncomm

A DynComm object, if not using the inline version of the function call

postProcessing

The name of the post processing algorithm. Default POSTPROCESSING$NONE. See POSTPROCESSING

id

The ID of the post processing algorithm. Default value is 1

Value

FALSE if the algorithm does not exist in the chain. Otherwise, TRUE

Details

The ID parameter is used to distinguish between several post processing algorithms of the same type. It is not required for neither the main algorithm nor any post processing algorithm type that only appears one time.

The main algorithm can be selected with POSTPROCESSING$NONE (default value) and the ID is ignored. See POSTPROCESSING for other available algorithms.

If there are no actions defined for post processing, this function fails.

See Also

DynComm , postProcess

Examples

Run this code
# NOT RUN {
library(DynComm)
parameters<-matrix(c("e","0.1","w", "FALSE"),ncol=2, byrow=TRUE)
  dc<-DynComm(ALGORITHM$LOUVAIN,CRITERION$MODULARITY,parameters)
  dc$addRemoveEdges(
   matrix(
      c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,12,13,1,1,1,2,2,2,18,12,19,20,2,3,11,12,4,9,5,9,22)
      ,ncol=2)
  )
  dc$postProcess(
    list(
 	     list(POSTPROCESSING$DENSOPT)
  	)
  )
 dc$select(POSTPROCESSING$DENSOPT)  #selects the results of densopt
 dc$select(POSTPROCESSING$NONE)  #selects the main algorithm results

 dc$postProcess(NULL)  #remove post processing
 ## or just
 ## dc$postProcess()


# }

Run the code above in your browser using DataLab