powered by
Builds strings that could be used as identifiers.
buildId(numOfItems, prefix)
A character with the alphanumeric strings is returned. These strings use the prefix that is mentioned in the argument "prefix"
A number. This defines the number of elements to be output.
A string. This defines the prefix for the strings.
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.
userId <- buildId(numOfItems = 3, prefix = "uid")
Run the code above in your browser using DataLab