check_msg_time: Check the time value(s) at a specific message

Description Usage Arguments Value Examples

View source: R/checking.R

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

1
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

1
2
3
4
5
6
## Not run: 
library(VWPre)
# Check the Sample Message time...
check_msg_time(data = dat)

## End(Not run)

VWPre documentation built on Nov. 30, 2020, 1:08 a.m.