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

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

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

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.