maf_data_pool_make_name_unique: Make a name unique (within datapool)

View source: R/class_maf_data_pool.R

maf_data_pool_make_name_uniqueR Documentation

Make a name unique (within datapool)

Description

Checks if a name is unique in a given data pool. If not, the function will append 15 letters randomly to the name until it finds a unique name, or surpasses max_number_of_attempts. Will throw an error if it can't find a unique name

Usage

maf_data_pool_make_name_unique(
  maf_data_pool,
  name,
  max_number_of_attempts = 50
)

Arguments

maf_data_pool

The data pool of interest (maf_data_pool)

name

name to make unique (string)

max_number_of_attempts

max number of attempts (whole number)

Value

a unique name (string)


CCICB/CRUX documentation built on Jan. 28, 2024, 10:12 p.m.