is_valid_trajectory | R Documentation |
The function tests an object (tibble) for several requirements:
columns 'time', 'object', 'x' and 'y' are present.
'object' column contains unique values
no value missing in 'x' and 'y'
'x' and 'y' are numeric
is_valid_trajectory(trajectory)
trajectory |
tibble |
No restriction about data type of 'object' is placed.
TRUE if conditions above are met, FALSE otherwise
example_pos <- tibble::tibble(object = 1:8, x = 1:8, y = 4 - (1:8)) is_valid_position(example_pos)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.