set_attribute: Set Attributes

Description Usage Arguments Details Value See Also

View source: R/trajectory-activities.R

Description

Activity for modifying an arrival's attributes.

Usage

1
2
3
set_attribute(.trj, keys, values, global = FALSE, mod = c(NA, "+", "*"))

set_global(.trj, keys, values, mod = c(NA, "+", "*"))

Arguments

.trj

the trajectory object.

keys

the attribute name(s), or a callable object (a function) which must return attribute name(s).

values

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

global

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

mod

if set, values modify the attributes rather than substituting them.

Details

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

Value

Returns the trajectory object.

See Also

get_attribute.


simmer documentation built on May 1, 2018, 5:03 p.m.