convert_event_record: Convert between 'ragged_event_record' and...

Description Usage Arguments See Also

Description

convert_event_record is for converting objects of ragged_event_record to formal_event_record or vise versa.

Usage

1

Arguments

event_record

An object of class ragged_event_record or formal_event_record.

dim

An argument when the event_record is event_record. A character vector specifying the variables to retain and the order in which they are retained.

If event_record is a ragged_event_record, it will be converted to a format_event_record, and vice versa.

The ordering of the dim arguemnt is very important. Often, events may be recorded at the same time but there exists a causal relation between them. For example, response-contingent reinforcement will result in reinforcement and the response being recorded at the same time. To ensure that an formal_event_record is generated such that responses are placed before their associated reinforcement deliveries, order the dims argument as such: dims = c("resp_time", "rft_time" ).

See Also

class.event_record


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