Skip to main content
Skip table of contents

removeGroupElement

Remove an element from a simulation group.

Usage

R
removeGroupElement(group, element)

Arguments

group

(character) Group name

element

(character) Element to remove

Details

Simulation groups are used for simulation as in Simulx GUI. At the creation of a Simulx project, a first group is created by default with the name "simulationGroup1". Use getGroups to check which groups have already been defined, and which elements are set in each group. To add a simulation group, use addGroup. To remove a simulation group, use removeGroup. To add or change a group element, use setGroupElement. To define new elements, use one of the define...Element functions.

Note: Removing an output element used in an outcome will delete the corresponding outcome and remove the outcome from the endpoints using it.

See also

Examples

R
  # Remove an output element from all groups
  initializeLixoftConnectors("simulx")
  project_name <- file.path(getDemoPath(), "5.simulation", "simulationGroups_treatment.smlx")
  loadProject(project_name)
  removeGroupElement(group = "low_dose", element = "regularY1") 
  removeGroupElement(group = "medium_dose", element = "regularY1") 
  removeGroupElement(group = "high_dose", element = "regularY1") 
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.