Subset an 'eye_table' Object
sub-.eye_table.Rd
The `[.eye_table` function is an S3 method for subsetting 'eye_table' objects. It uses `NextMethod()` to perform the subsetting operation and then reapplies the 'eye_table' class to the result using the `as_eye_table` function. This ensures that the returned object still has the 'eye_table' class after subsetting.
Examples
# Create an 'eye_table' object
df <- data.frame(x = 1:5, y = 6:10)
eye_table_df <- as_eye_table(df)
# Subset the 'eye_table' object
subset_eye_table <- eye_table_df[1:3,]
class(subset_eye_table)
#> [1] "eye_table" "data.frame"