buildId: Build identifier

View source: R/buildId.R

buildIdR Documentation

Build identifier

Description

Builds strings that could be used as identifiers.

Usage

buildId(numOfItems, prefix)

Arguments

numOfItems

A number. This defines the number of elements to be output.

prefix

A string. This defines the prefix for the strings.

Details

This function can be used to build an alphanumeric sequence that can be used as a primary key in a data table or a unique identifier of an element.

Value

A character with the alphanumeric strings is returned. These strings use the prefix that is mentioned in the argument "prefix"

Examples

userId <- buildId(numOfItems = 3, prefix = "uid")

conjurer documentation built on Jan. 22, 2023, 1:16 a.m.