set_attribute: Set Attributes

Description Usage Arguments Details Value See Also

View source: R/trajectory-activities.R

Description

Activity for modifying an arrival's attribute in the form of a key/value pair.

Usage

1
2
3
set_attribute(.trj, key, value, global = FALSE)

set_global(.trj, key, value)

Arguments

.trj

the trajectory object.

key

the attribute name.

value

the value to set, accepts either a numeric or a callable object (a function) which must return a numeric.

global

if TRUE, the attribute will be global instead of per-arrival.

Details

set_global is a shortcut for set_attribute(global=TRUE).

Value

Returns the trajectory object.

See Also

get_attribute.


simmer documentation built on July 28, 2017, 9:01 a.m.