postProcess: postProcess(actions)

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

Description

This method receives a list of actions to perform in post processing in the same order they are listed from left to right.

Usage

1
DynComm.postProcess(dyncomm,actions)

Arguments

dyncomm

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

actions

A list of post processing actions/steps

Details

Several actions of the same type are allowed. They receive an internal ID number that starts at one and increments by one unit with each action of the same type. Later, this ID can be used to select the intended action and get results from it.

Post processing can be reset (removed) be setting actions to NULL (default value) or passing an empty list.

The format of the actions is a list of action. Each action is a list of the action name (see POSTPROCESSING) and parameters. The parameters is a matrix of two columns, the first having the name of the parameter and, the second, the value of the parameter. The parameters is optional, and may be missing, in which case default values are used, if required at all.

The parameters accepted by each post processing algorithm can be found on the help page of each respective algorithm.

This slighty awkward syntax is due to R not supporting matrix of matrices.

Value

FALSE if any kind of error occurred. Otherwise, TRUE

Author(s)

poltergeist0

See Also

DynComm , select , POSTPROCESSING

Examples

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