addGroup
[Simulx] Add simulation group
Add a new simulation group.
Usage
addGroup(group)
Arguments
- group
(character) Name of the group to add.
Details
Simulation groups can be added to the simulation as in Simulx GUI. By default, the elements of the newly added group are the same as the first simulation group. To check which elements have been set for this group, please use getGroups
. To change a group element, use setGroupElement
.
Note: when a Simulx project is created, a first group is created by default with the name "simulationGroup1".
See also
Examples
# create two groups with different treatments
initializeLixoftConnectors("simulx")
#> [INFO] lixoftConnectors package is about to switch from "monolix" mode to "simulx" mode.
#> Information relative to the previous "monolix" session won't be accessible anymore and potential unsaved project changes and associated results will be lost.
#> Proceed software switch ? [y|N]
project_name <- file.path(getDemoPath(), "4.exploration", "PKPD_exploration.smlx")
loadProject(project_name)
#> [ERROR] 'C:\Users\FranoMihaljevic\lixoft\monolix\monolix2024R1\demos\4.exploration\PKPD_exploration.smlx' is not a regular Monolix project. It must be loaded in Simulx
addGroup("simulationGroup2")
#> [ERROR] This function relates to "simulx" software. It is not available for "monolix" software.
setGroupElement("simulationGroup2", elements = "Dose_4000")
#> [ERROR] This function relates to "simulx" software. It is not available for "monolix" software.