mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-21 05:19:07 +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
31
reference/unique_short.md
Normal file
31
reference/unique_short.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Create unique short names of character vector items based on index
|
||||
|
||||
The function will prefer original names, and only append index to long
|
||||
strings.
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
unique_short(data, max = 15)
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- data:
|
||||
|
||||
character vector
|
||||
|
||||
- max:
|
||||
|
||||
maximum final name length
|
||||
|
||||
## Value
|
||||
|
||||
character vector
|
||||
|
||||
## Examples
|
||||
|
||||
``` r
|
||||
c("kahdleidnsallskdj", "hej") |> unique_short()
|
||||
#> [1] "kahdleidnsall_1" "hej"
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue