check.event: Check whether an event has occurred or not

Description Usage Arguments Value See Also Examples

Description

Check whether or not an event that has been arranged has occurred or not. This function can be used for any function that specifies something in the future.

Usage

1
2
3
check.event(input_object, event_var, setup_var)

check.event( input_monitor, event_var, setup_var )

Arguments

event_var

A character string speicfying the event variable in the sim_input object.

setup_var

A character string specifying the variable that sets up the event in the sim_input object.

input_monitor

A sim_input object.

Value

Returns TRUE if the event has occurred.

See Also

input_monitor For how the events are recorded and set up.

Examples

1
2
3
4
# From the ?do.sim_fx example
set.seed(1)
access.input_monitor( "rft_setup", 1, do.sim( event, input_monitor ) )
check.event( input_monitor = input_monitor, event_var = "rft_time", setup_var = "rft_setup" )

Don-Li/CAB_original documentation built on May 6, 2019, 2:53 p.m.