Ensure an anipoint uses a 1-D Cartesian coordinate system
Source:R/coordinate_system.R
ensure_is_cartesian_1d.RdStops with an informative error if data is not in a 1-D Cartesian
coordinate system.
Examples
af <- example_anipoint(n_obs = 3, n_individuals = 1, n_keypoints = 1)
try(ensure_is_cartesian_1d(af))
#> Error in ensure_coordinate_system(data, "cartesian_1d", "1D Cartesian") :
#> This anipoint is not in a 1D Cartesian coordinate system.
#> ℹ coordinate_system is "cartesian_2d".
#> ℹ Convert the coordinates first; anispace has the transformations.