extract_AOIs | R Documentation |
Extracts rectangular areas of interest (AOI),
as defined by "!V IAREA RECTANGLE"
command.
Specifically, we expect it to be in format
!V IAREA RECTANGLE <index> <left> <top> <right> <bottom> <label>
,
where <label>
is a string label and all other variables are integer.
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_AOIs(object)
## S3 method for class 'data.frame'
extract_AOIs(object)
## S3 method for class 'eyelinkRecording'
extract_AOIs(object)
object |
Either an |
Object of the same time as input, i.e., either a eyelinkRecording
object
with an additional AOIs
slot or a data.frame with AOIs' information. See
eyelinkRecording
for details.
data(gaze)
# by passing the recording
gaze <- extract_AOIs(gaze)
# by passing events table
AOIs <- extract_AOIs(gaze$events)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.