Learn R Programming

rsyncrosim (version 2.0.1)

chartId: Retrieves chartId of SyncroSim Chart

Description

Retrieves the Chart Id of a SyncroSim Chart.

Usage

chartId(ssimObject)

# S4 method for character chartId(ssimObject)

# S4 method for Chart chartId(ssimObject)

Value

An integer: chart id.

Arguments

ssimObject

Chart 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, and Project
mySession <- session()
myLibrary <- ssimLibrary(name = myLibraryName, 
                         session = mySession, 
                         packages = "stsim",
                         overwrite = TRUE) 
myProject <- project(myLibrary, project = "Definitions")

# Get the chart object corresponding to the chart called "My Chart"
myChart <- chart(myProject, chart = "My Chart")

# Get Chart ID for SyncroSim Chart
chartId(myChart)
}

Run the code above in your browser using DataLab