R/possiblefix.R

Defines functions possiblefix

possiblefix <-
function(speed, speed.cutoff){
  rle <- rle(ifelse(speed > speed.cutoff, 's', 'f'))
  return(rle$lengths[rle$values == 'f'])
}

Try the gazepath package in your browser

Any scripts or data that you put into this service are public.

gazepath documentation built on Feb. 7, 2020, 3:01 a.m.