mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
helper functions for nivce labels and FreesearchR color palette
This commit is contained in:
parent
91e2772a86
commit
fde1a50140
4 changed files with 84 additions and 2 deletions
23
man/unique_short.Rd
Normal file
23
man/unique_short.Rd
Normal 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()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue