mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
Deploying to gh-pages from @ agdamsbo/FreesearchR@54dd332cd8 🚀
This commit is contained in:
parent
4cf4bd0499
commit
6d545337de
328 changed files with 12930 additions and 1662 deletions
34
reference/is_identical_to_previous.md
Normal file
34
reference/is_identical_to_previous.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Test if element is identical to the previous
|
||||
|
||||
Test if element is identical to the previous
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
is_identical_to_previous(data, no.name = TRUE)
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- data:
|
||||
|
||||
data. vector, data.frame or list
|
||||
|
||||
- no.name:
|
||||
|
||||
logical to remove names attribute before testing
|
||||
|
||||
## Value
|
||||
|
||||
logical vector
|
||||
|
||||
## Examples
|
||||
|
||||
``` r
|
||||
c(1, 1, 2, 3, 3, 2, 4, 4) |> is_identical_to_previous()
|
||||
#> [1] FALSE TRUE FALSE FALSE TRUE FALSE FALSE TRUE
|
||||
mtcars[c(1, 1, 2, 3, 3, 2, 4, 4)] |> is_identical_to_previous()
|
||||
#> [1] FALSE TRUE FALSE FALSE TRUE FALSE FALSE TRUE
|
||||
list(1, 1, list(2), "A", "a", "a") |> is_identical_to_previous()
|
||||
#> [1] FALSE TRUE FALSE FALSE FALSE TRUE
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue