align_msg: Aligns samples to a specific message.

Description Usage Arguments Value Examples

View source: R/formatting.R

Description

align_msg examines the data from each recording event and locates the first instance of the specified message in the column SAMPLE_MESSAGE. The function creates a new column containing the aligned series which can be utilized by subsequent functions for checking and creating the time series column.

Usage

1

Arguments

data

A data table object output from prep_data.

Msg

An obligatory string containing the message to be found in the column SAMPLE_MESSAGE or a regular expression for locating the appropriate message.

Value

A data table object.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# To align the samples to a specific message...
library(VWPre)
df <- align_msg(data = dat, Msg = "ExperimentDisplay")
 
# For a more complete tutorial on VWPre plotting functions:
vignette("SR_Message_Alignment", package="VWPre")

## End(Not run)

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