model: Get/Set the model of an experiment

Description Usage Arguments Value Examples

View source: R/model.R

Description

These functions allow to get and set the path to the .gaml file that contains the model of an experiment object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
model(exp)

## Default S3 method:
model(exp)

## S3 method for class 'experiment'
model(exp)

model(exp) <- value

## Default S3 replacement method:
model(exp) <- value

## S3 replacement method for class 'experiment'
model(exp) <- value

Arguments

exp

An object of class experiment.

value

Path of new gaml model file

Value

The path to the .gaml file that contains the model definition.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
exp1 <- load_experiment("sir", system.file("models", "sir.gaml",
                        package = "rama"))
model(exp1)
model(exp1) <-  system.file("models", "CopyOfsir.gaml",
                        package = "rama")
model(exp1)
exp1 <- load_experiment("sir", system.file("models", "sir.gaml",
                        package = "rama"))
model(exp1)
model(exp1) <-  system.file("models", "CopyOfsir.gaml",
                        package = "rama")
model(exp1)

r-and-gama/rama documentation built on July 19, 2019, 9:49 p.m.