make_unique_names {plotcli}R Documentation

Make unique names

Description

This function takes a vector of names and ensures that each name is unique by appending a number if necessary.

Usage

make_unique_names(names)

Arguments

names

A character vector of names.

Value

A character vector of unique names.

Examples

make_unique_names(c("apple", "apple", "banana", "apple"))

[Package plotcli version 0.1.0 Index]