Learn R Programming

conjurer (version 1.7.1)

buildId: Build identifier

Description

Builds strings that could be used as identifiers.

Usage

buildId(numOfItems, prefix)

Value

A character with the alphanumeric strings is returned. These strings use the prefix that is mentioned in the argument "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.

Examples

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

Run the code above in your browser using DataLab