Learn R Programming

rsyncrosim (version 2.0.1)

scenarioId: Retrieves scenarioId of Scenario

Description

Retrieves the scenarioId of a Scenario.

Usage

scenarioId(scenario)

# S4 method for character scenarioId(scenario)

# S4 method for Scenario scenarioId(scenario)

Value

Integer id of the input Scenario.

Arguments

scenario

Scenario object

Examples

Run this code
if (FALSE) {
# Set the file path and name of the new SsimLibrary
myLibraryName <- file.path(tempdir(),"testlib")

# Set the SyncroSim Session, SsimLibrary, Project, and Scenario
mySession <- session()
myLibrary <- ssimLibrary(name = myLibraryName, session = mySession) 
myProject <- project(myLibrary, project = "Definitions")
myScenario <- scenario(myProject, scenario = "My Scenario")

# Get Scenario ID of Scenario
scenarioId(myScenario)
}

Run the code above in your browser using DataLab