buildName: Build Dynamic Strings

View source: R/buildName.R

buildNameR Documentation

Build Dynamic Strings

Description

Builds strings that could be further used as identifiers. This is an internal function and is currently not exported in the package.

Usage

buildName(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. For example, the function buildCust uses this function and passes the prefix "cust" while the function buildProd passes the prefix "sku"

Details

This function is used by other internal functions namely, buildCust and buildProd to produce the alphanumeric identifiers for customers and products respectively.

Value

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


conjurer documentation built on May 1, 2022, 9:05 a.m.