helper functions for nivce labels and FreesearchR color palette

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-06-26 09:21:42 +02:00
commit fde1a50140
No known key found for this signature in database
4 changed files with 84 additions and 2 deletions

23
man/unique_short.Rd Normal file
View file

@ -0,0 +1,23 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visual_summary.R
\name{unique_short}
\alias{unique_short}
\title{Create unique short names of character vector items based on index}
\usage{
unique_short(data, max = 15)
}
\arguments{
\item{data}{character vector}
\item{max}{maximum final name length}
}
\value{
character vector
}
\description{
The function will prefer original names, and only append index to long
strings.
}
\examples{
c("kahdleidnsallskdj", "hej") |> unique_short()
}