View source: R/utilities-entity.R
uniqueEntities | R Documentation |
Extract Unique Elements of type 'Entity'
uniqueEntities(entities, compareBy = CompareBy$id)
entities |
List of objects of type 'Entity' |
compareBy |
A string defining the property that is compared by. Can take values 'id', 'name', and 'path'. Default is 'id'. |
List of entities that are unique for the property defined by the argument 'compareBy'.
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
parameters <- c(
getParameter(toPathString(c("Organism", "Liver", "Volume")), sim),
getParameter(toPathString(c("Organism", "Liver", "Volume")), sim),
getParameter(toPathString(c("Organism", "TableParameter")), sim)
)
# Return a list containing the two parameters 'Volume' and 'Weight (tissue)'
uniqueEntities(parameters, CompareBy$id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.