select: select(postProcessing, id)

Description Usage Arguments Details Value Author(s) See Also Examples

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

1
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

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.

Value

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

Author(s)

poltergeist0

See Also

DynComm , postProcess

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
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()

DynComm documentation built on Oct. 23, 2020, 5:57 p.m.