View source: R/extract_triggers.R
extract_triggers | R Documentation |
Extracts trigger events, messages that adhere to a
<message_prefix> <label>
format. Their purpose is to identify the time
instance of specific interest.
Please note that due to a non-standard nature of this function is not called
during the read_edf
call and you need to call it separately.
extract_triggers(object, message_prefix = "TRIGGER")
## S3 method for class 'data.frame'
extract_triggers(object, message_prefix = "TRIGGER")
## S3 method for class 'eyelinkRecording'
extract_triggers(object, message_prefix = "TRIGGER")
object |
Either an |
message_prefix |
Beginning of the message string that identifies trigger messages.
Defaults to |
Object of the same time as input, i.e., either a eyelinkRecording
object
with an additional triggers
slot or a data.frame with triggers' information. See
eyelinkRecording
for details.
read_edf, eyelinkRecording
data(gaze)
# by passing the recording
gaze <- extract_triggers(gaze)
# by passing events table
triggers <- extract_triggers(gaze$events)
# with an explicit message prefix
triggers <- extract_triggers(gaze$events, "TRIGGER")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.