Description Usage Arguments Value Examples
is.first_in_set
- Logical check of each element in a vector to
determine if an element is first in set.
is.last_in_set
- The (semantical) "inverse" to is.first_in_set
.
1 2 3 |
x |
A vector of elements. |
Returns a logical vector equal in length to x.
1 2 3 4 | set.seed(3)
(x <- sample(1:3, 9, TRUE))
is.first_in_set(x)
is.last_in_set(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.