is_sequential_int_vec | R Documentation |
Useful for checking if a vector is a valid array task list. - uses user-submitted order
is_sequential_int_vec(x)
x |
[int] an integer vector :: |
[lgl] TRUE if all elements are contiguous integers
is_contiguous_int_vec(1L:10L) # TRUE
is_contiguous_int_vec(c(1L, 3L, 2L)) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.