is_incrementing | R Documentation |
'NA's are not ignored and any vector with 'NA's will fail unless the whole vector is 'NA'.
is_incrementing(x)
x |
A vector |
TRUE if the vector is sorted
is_incrementing(1:5) # TRUE
is_incrementing(letters[1:5]) # TRUE
is_incrementing(c(4, 3, 0)) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.