Derived from the index at construction rather than declared, in the unit the index is in – so a frame indexed by frame number has an interval in frames, and one indexed by seconds has it in seconds.
Arguments
- data
An aniframe object.
Refreshed whenever the frame is re-declared, so like
coordinate_systemit can lag raw dplyr edits.is_sampling_regular()reads the data directly and is always current.
Details
Measured per key: identity plus temporal context. The index restarts in each group, so pooling them would measure the restarts rather than the sampling.
Examples
af <- example_aniframe(n_obs = 5, n_individuals = 2, n_keypoints = 1)
get_sampling_interval(af)
#> [1] 1