Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

postProcess

postProcess(actions)


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

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

Examples

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

Dynamic Network Communities Detection and Generation

v2020.1.6
GPL-2
Authors
Rui P. Sarmento [aut, cre] (<https://orcid.org/0000-0003-1891-5295>), Luís Lemos [aut], Mário Cordeiro [ctb], Giulio Rossetti [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.