View source: R/extract_display_coords.R
| extract_display_coords | R Documentation |
Extracts display coordinates from a message that adheres to a
<message_prefix> <label> format. Please note that this function called
during the read_edf call with silent = TRUE. If display_coords
are missing from the eyelinkRecording, run this method to see the warnings.
extract_display_coords(
object,
message_prefix = "DISPLAY_COORDS",
silent = FALSE
)
## S3 method for class 'data.frame'
extract_display_coords(
object,
message_prefix = "DISPLAY_COORDS",
silent = FALSE
)
## S3 method for class 'eyelinkRecording'
extract_display_coords(
object,
message_prefix = "DISPLAY_COORDS",
silent = FALSE
)
object |
Either an |
message_prefix |
Beginning of the message string that identifies the DISPLAY_COORDS message.
Defaults to |
silent |
Whether to suppress a warning when DISPLAY_COORDS message is missing. Default to |
A eyelinkRecording object with an additional display_coords slot (if that was object type),
Either a four element numeric vector with display coordinates, or NULL if object was an events table of
eyelinkRecording object. See eyelinkRecording for details.
read_edf, eyelinkRecording
data(gaze)
# by passing the recording
gaze <- extract_display_coords(gaze)
# by passing events table
display_coords <- extract_display_coords(gaze$events)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.