
Create unique short names of character vector items based on index
Source:R/visual_summary.R
unique_short.Rd
The function will prefer original names, and only append index to long strings.
Examples
c("kahdleidnsallskdj", "hej") |> unique_short()
#> [1] "kahdleidnsall_1" "hej"