Add Scanpath to a Data Frame
add_scanpath.data.frame.Rd
This function adds a scanpath to a data frame.
Usage
# S3 method for class 'data.frame'
add_scanpath(x, outvar = "scanpath", fixvar = "fixgroup")
Examples
# Create a data frame with a fixation group
df <- data.frame(x = 1:5, y = 6:10, fixgroup = rep(1, 5))
# Add a scanpath to the data frame
df <- add_scanpath.data.frame(df)
#> Error in add_scanpath.data.frame(df): could not find function "add_scanpath.data.frame"