check_msg_time {VWPre}R Documentation

Check the time value(s) at a specific message

Description

check_msg_time examines the time point of a specific Sample Message for each event. Depending on the format of the data, it will use one of three columns: TIMESTAMP, Align, or Time. If times at which the message occurs are equal, it will return a single value. Optionally, the result can be output to a dataframe containing all event-level information.

Usage

check_msg_time(data, Msg = NULL, ReturnData = FALSE)

Arguments

data

A data table object output by relabel_na, align_msg, or create_time_series.

Msg

A character string containing the exact message to be found in the column SAMPLE_MESSAGE or a regular expression for locating the appropriate message.

ReturnData

A logical indicating whether to return a data table containing Message Time information for each event.

Value

The value(s) of Time (in milliseconds) at which the Sample Message is found.

Examples

## Not run: 
library(VWPre)
# Check the Sample Message time...
check_msg_time(data = dat)

## End(Not run)

[Package VWPre version 1.2.4 Index]