Skip to contents

aniframe is the abstract parent of every animovement frame class, so this tests for the whole family: an anipoint, an anievent, and any subclass built on them all pass. Use is_anipoint() to test for the position grain specifically.

Usage

is_aniframe(x)

Arguments

x

An object to test

Value

Logical: TRUE if x inherits from aniframe

Examples

af <- example_anipoint(n_obs = 3, n_individuals = 1, n_keypoints = 1)
is_aniframe(af)
#> [1] TRUE

# A plain data frame is not one
is_aniframe(data.frame(x = 1))
#> [1] FALSE