mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-12-16 09:32:10 +01:00
344 B
344 B
Checks if elements in vector are equally spaced as indication of ID
Checks if elements in vector are equally spaced as indication of ID
Usage
is_consecutive(data)
Arguments
-
data:
vector
Value
logical
Examples
1:10 |> is_consecutive()
#> [1] TRUE
sample(1:100,40) |> is_consecutive()
#> [1] FALSE